View Full Version : HTML: immagine con testo
matrix866
07-04-2004, 19:10
Come faccio ad inserire un'immagine a sinistra ed a fianco a scrivere? Ho provato, ma il testo me lo mette sotto!!
o fai una tabella di due colonne (quindi in una metti l'immagine e nell'altra scrivi) oppure nel tag dell'immagine imposti l'attributo align su left (o su right se vuoi che l'immagine venga sulla destra della pagina):
<img src="immagine.jpg" border="0" align="left">
ciao ;)
anonimizzato
07-04-2004, 20:25
<html>
<head>
<title>Titolo della pagina</title>
<style type="text/css">
img {
float:left;
}
</style>
</head>
<body>
<img src="immagine.gif" width="" height="" border="" />
<p>Testo da allineare a destra dell'immagine.</p>
</body>
</html>
matrix866
07-04-2004, 21:44
Grazie Sgurbat.
matrix866
07-04-2004, 21:50
Dato che il testo viene troppo attaccato alla foto mi dici come faccio a dargli un distacco?
matrix866
07-04-2004, 22:02
risolto
anonimizzato
08-04-2004, 20:12
img {
float:left;
padding-right: 10px;
}
vBulletin® v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.