|
|||
div ausrichten ohne Textumfluss
Hallo
Ich möchte ein div rechts ausrichten - aber ohne, dass der Text links drum herum fliesst. float:right; fällt also schonmal weg. Mit text-align:right; wird zwar der Text in diesem Div rechts ausgerichtet - will ich auch ned. Ich will den Div als solches rechts ausrichten. Geht das überhaupt? Gruss, Simon |
Sponsored Links |
|
|||
Probier es doch mal so:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"> <head> <style type="text/css"> <!-- #rechts { float: right; height: 50px; border: 1px solid #000000; background: #dddddd; width: 80%; } #neuezeile { clear: both; } --> </style> </head> <body> <div id="rechts"> </div> <div id="neuezeile"> Neue Zeile </div> </body> </hmtl> http://www.andreas-kalt.de/webdesign.../float-theorie
__________________
Danke an alle, die sich hier engagieren |
Sponsored Links |
Themen-Optionen | |
Ansicht | |
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
Fragen zu CSS und Joomla | DOKTOR | CSS | 2 | 23.05.2011 20:29 |
Brauche Hilfe: Schwarzes Nichts | Zwox | CSS | 10 | 19.11.2010 17:53 |
Header entfernen | tripple | CSS | 17 | 15.06.2010 16:41 |
Schriftfarbe in den Eintragungsfeldern von jforms | Steveislucky | CSS | 2 | 16.03.2010 11:59 |
CSS Text nebeinander? | carstiee09 | CSS | 13 | 13.11.2009 20:18 |