Ein neuer Trick für CSS Layouts

Eric Sol stellt bei A List Apart Faux Absolute Positioning vor.

With faux absolute positioning, we can align every item to a predefined position on the grid (as with absolute positioning) but items still affect the normal flow and — thanks to clear — have many of the same advantages as normal-flow elements. Every row in the grid will always have height dependent on the content or as defined in CSS, and will always take up 100% of the width, no matter how many columns are defined in the row. Furthermore, we can avoid using cumbersome margins or padding to adjust the amount of whitespace between elements — which is a plus, since those techniques almost always require us to use IE6-specific hacks to compensate for the browser’s box model.

Werde ich mir morgen mal ansehen, jetzt ist es erstmal Zeit nach Hause zu gehen;-)

Possibly related posts (automatically generated)