Home › Forum › Problemi Vari con WP › problemino spaziatura testo-immagine
-
AutorePost
-
-
17 Maggio 2010 alle 10:09 #13916profexPartecipante
Ciao,
sto utilizzando in un sito basato su wordpress il tema “thefuturetheinternet”.
Ho il problema inserendo un immaginetta negli articoli con il testo intorno allineato a destra della spaziatura a zero.
sopperisco manualmente modificando il codice inserendo una spaziatura di 10px cosi:
style=”float: left; margin: 0px 10px 0px 0px;
credo di non sbagliare dicendo che questa spaziatura sia possibile inserirla nel realtivo css per fare in modo che venga applicata automagicamente, solo che essendo un profano nn riesco a trovare la sezione inerente…
evito di postare per ora il lunghissimo css ma se qualcuno ha una dritta da darmi mi farebbe un favore enorme
Grazie per l’attenzione…
-
17 Maggio 2010 alle 10:16 #73615EmmePartecipante
Puoi creare una classe, non so, “imgalignleft” e assegnarle i relativi attributi all’interno del css. Al posto di
style="..."
scriverai
class="imgalignleft"
e nel css aggiungerai
.imgalignleft { float: left; margin: 0px 10px 0px 0px; }
Il risultato comunque non cambierebbe, sarebbe solo una questione di ordine.
-
17 Maggio 2010 alle 10:29 #73616profexPartecipante
Ti ringrazio per la risposta rapida, cerchero’ di capire cosa intendi facendo qualche prova
Io pensavo di andare a inserire i valori necessari nel css esistente ma ho il problema di capire quale sezione si occupa delle immagini negli articoli nel senso che nn so se gli articoli vengono formattati per quanto riguarda le immagini nella sezione
body {
o
img {
o
#content {
e di conseguenza credo anche di nn sapere dove inserire il tuo suggerimento nel css ma faccio qualche prova per vedere se il risultato lo riesco a ottenere
Grazie ancora
-
17 Maggio 2010 alle 10:55 #73619EmmePartecipante
.imgalignleft { float: left; margin: 0px 10px 0px 0px; }
lo puoi inserire in qualsiasi punto del css, è una classe nuova. Devi solo ricordarti di specificarla nelle immagini a cui la vuoi applicare, tipo
img class="imgalignleft" src="..."
Potresti anche fare in modo di applicare lo stile a tutte le immagini del content scrivendo questo nel css
#content img { float: left; margin: 0px 10px 0px 0px; }
ma francamente non te lo consiglio.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.