|
|||
![]() Zitat:
|
Sponsored Links |
|
|||
![]() Zitat:
![]() Nur so kann ich auch die Vor- und Nachteile beschreiben. Ich weiß jetzt nicht was Du genau meinst. Mir fallen da noch mehr Möglichkeiten ein.
__________________
</ulle> |
|
|||
![]()
Var. 1:
Code:
<div style="width: 10px; float: left;">A</div> <div style="width: 10px; float: left;">B</div> <div style="clear: both;"></div> <div>Text</div> Code:
<div style="width: 10px; float: left;">A</div> <div style="width: 10px;">B</div> <div style="clear: both;"></div> <div>Text</div> Ich mache es immer wie in Var. 1. |
|
|||
![]()
2 Varianten, wohl kaum
![]() Das sind 2 verschiedene Layout, kopiere Dir mal meinen Code und schaue in an. Achtung: Dieser CODE hat noch den 3 Pixel BUG des IE 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> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>xxxx</title> <style type="text/css" media="screen,projection" title="Druckvorschau-semantic-Test"> /*<![CDATA[*/ html,body { margin: 0; padding: 0 3px; background-color: #FFFFFF; color: #000000; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 100.01%; } div { border: 2px solid #ff0000; padding: 1em; } /*]]>*/ </style> </head> <body> <div style="width: 20em; float: left;">float: left;</div> <div style="width: 20em; float: left;">float: left;</div> <div>Block vor Clear</div> <div style="clear: both;">Block nach Clear</div> <hr /> <div style="width: 20em; float: left;">float: left;</div> <div style="width: 20em;">ohne float</div> <div>Block vor Clear</div> <div style="clear: both;">Block nach Clear</div> </body> </html>
__________________
</ulle> |
|
|||
![]()
Du hast meinen Beitrag falsch gelesen. Ich cleare erst, dann kommt der nächste Block.
Du hast das vertauscht. Ich frage deshalb weil beides gleich ausschaut wenn man es so macht wie ich in den 2 Varianten beschrieben habe. |
|
|||
![]() Zitat:
![]() ![]() Der ganze THREAD ist von Deiner Seite ohne Mühe und Fleis, ich habe nicht das gefühl dass Du Dir selbst etwas erarbeiten willst, deshalb Floate wie Du es meinst..........
__________________
</ulle> |
![]() |
Themen-Optionen | |
Ansicht | |
|
|
![]() |
||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
span in Überschrift floatet in neue Zeile (FF, IE) | fox | CSS | 6 | 24.01.2009 11:35 |
Bild unter dynamischer Navigationsleiste floatet nicht nach? - Lücke | Schnatterinchen | CSS | 7 | 08.07.2008 16:52 |
Tabelle im Firefox floatet nicht | Cheops07 | CSS | 2 | 14.09.2006 15:01 |
IE floatet nicht richtig nach clear | klofi | CSS | 4 | 11.11.2005 15:37 |
IE floatet Div nicht richtig | nc2001 | CSS | 6 | 17.07.2005 14:00 |