Reply to comment

CSS-Tricks

Tagged:
  • IE erlaubt Positionierung von relativ positionierten Elementen nur, wenn eine Dimension (Höhe oder Breite) angegeben wurde: Mehr dazu lesen
  • Enthält ein Element (Wrapper) mehrere gefloatete Elemente, sollte als letztes Element ein leeres DIV oä. kommen, daß das Floating aufhebt (clear: both;): Wenn nicht, umgibt der Wrapper die Elemente nicht. Wichtig zB. bei mehrspaltigem Layout, bei dem der Wrapper einen Hintergrund für alle enthaltenen Elemente bereitstellen soll:
Ohne clear-DIV Mit clear-DIV
Header
(float-wrapper)
float 1 float 2
clear-DIV
footer
Header
(float-wrapper)
float 1 float 2
footer

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Insert Google Map macro.

More information about formatting options