Joomla.it Forum
Joomla! 2.5 (versione con supporto terminato) => Joomla! 1.6/1.7/2.5 => : enbar 31 Jan 2013, 20:37:14
-
Ciao, sto realizzando un sito per una band musicale e devo inserire dei video da youtube. Anzichè usare uno dei vari moduli in merito, ho inserito in un articolo il codice dei video che fornisce youtube. Il problema è che le anteprime vengono attaccate l'una all'altra dall'alto verso il basso mentre da sinistra a destra sono riuscito a separarle. Inserisco qui sotto tutto il codice che ho incorporato, mi date una mano a fare in modo che venagno separati dall'alto verso il basso? Grazie
<iframe width="400" height="300" align="left" src="http://www.youtube.com/embed/jnRqjy5-CH0 (http://www.youtube.com/embed/jnRqjy5-CH0)" frameborder="0" allowfullscreen></iframe> <iframe width="400" height="300" align="right" src="http://www.youtube.com/embed/jnVeyXTHeBs (http://www.youtube.com/embed/jnVeyXTHeBs)" frameborder="0" allowfullscreen></iframe>
<iframe width="400" height="300" align="left" src="http://www.youtube.com/embed/-JAP5gWcRsE (http://www.youtube.com/embed/-JAP5gWcRsE)" frameborder="0" allowfullscreen></iframe> <iframe width="400" height="300" align="right" src="http://www.youtube.com/embed/5UGt1EVEbsM (http://www.youtube.com/embed/5UGt1EVEbsM)" frameborder="0" allowfullscreen></iframe>
<iframe width="400" height="300" align="left" src="http://www.youtube.com/embed/1QPn6Gt8NQQ (http://www.youtube.com/embed/1QPn6Gt8NQQ)" frameborder="0" allowfullscreen></iframe> <iframe width="400" height="300" align="right" src="http://www.youtube.com/embed/hxvQyHiimDM (http://www.youtube.com/embed/hxvQyHiimDM)" frameborder="0" allowfullscreen></iframe>
-
da semplicemente al tag <frame> un margin:10px; tramite il css
se hai problemi a farlo in autonomia riposta pure :)
-
Ho inserito il margin 10 px in ogni frame ma non è cambiato niente, ti riporto il codice com'è adesso:
<iframe width="400" height="300" align="left" margin="10px" src="http://www.youtube.com/embed/jnRqjy5-CH0" frameborder="0" allowfullscreen></iframe> <iframe width="400" height="300" align="right" margin="10px" src="http://www.youtube.com/embed/jnVeyXTHeBs" frameborder="0" allowfullscreen></iframe>
<iframe width="400" height="300" align="left" margin="10px" src="http://www.youtube.com/embed/-JAP5gWcRsE" frameborder="0" allowfullscreen></iframe> <iframe width="400" height="300" align="right" margin="10px" src="http://www.youtube.com/embed/5UGt1EVEbsM" frameborder="0" allowfullscreen></iframe>
<iframe width="400" height="300" align="left" margin="10px" src="http://www.youtube.com/embed/1QPn6Gt8NQQ" frameborder="0" allowfullscreen></iframe> <iframe width="400" height="300" align="right" margin="10px" src="http://www.youtube.com/embed/hxvQyHiimDM" frameborder="0" allowfullscreen></iframe>
-
prova con style="margin: 10px;"
-
Ok adesso si sono distanziati correttamente, grazie mille berry!!
-
Ma non noti una sottile differenza tra quello che c'è scritto qui:
un margin:10px; tramite il css
e quello che avevi inserito tu?
margin="10px"
se non altro nella sintassi...
-
Si in effetti avevo scritto una cosa per un altra, però avendo postato la modifica e non avendo ricevuto una risposta pensavo di aver inserito correttamente il margin, grazie per il suggerimento.