Ciao,
utilizzando i css si riesce ad avere sulla stessa riga, parte del testo allineata a sx e parte a destra??
Ciao,
utilizzando i css si riesce ad avere sulla stessa riga, parte del testo allineata a sx e parte a destra??
Un esempio:
codice:XHTML <p id="data"> <span id="giorno">Udine, 5 aprile 2006</span> <span id="ora">Ore 16:00</span> </p> CSS #data { width:100%; } #data span { display:block; width:49.9%; } #giorno { float:left; } #ora { float:right; }
Leading the Web to Its Full Potential...
www.pierofix.it | www.w3.org | www.zeldman.com/externals | http://browsehappy.com | www.alistapart.com | www.webstandards.org | www.flickr.com/photos/pierofix/
Molto meglio usare una <dl>:
<dl id="data">
<dt id="giorno">5 aprile</dt>
<dd id="ora">13.00</dd>
</dl>
ed aggiungere al float la dichiarazione display:inline per risolvere il problema del raddoppiamento margine su IE.![]()
Il mio era un esempio generico. Non sappiamo che significato abbiano le informazioni che deve strutturare io78.Originariamente inviato da thomas_anderson
Molto meglio usare una <dl>:
Leading the Web to Its Full Potential...
www.pierofix.it | www.w3.org | www.zeldman.com/externals | http://browsehappy.com | www.alistapart.com | www.webstandards.org | www.flickr.com/photos/pierofix/
www.markschenk.com
works great on Opera, the best internet browser. see CSS experiments.![]()
<dl>
<dt>No Content, Only Style<span class="expdate">(April 22, 2003)</span></dt>
<dd>Taking generated content to the extremes, this page provides the absolute bare minimum of markup and all content and style is provided by means of stylesheets.</dd>
</dl>
don't mess with the best.![]()
e il css del tuo esempio come sarebbe?