stacking multiple in-flow elements.

pushing and pulling margins.

chaotic test page
#23
13.aug.2006
rev: 13.aug.2006

the basics for simple drop-shadows and similar effects.


1: This is a space...

...and here's some text that serves no other purpose than to fill this space.

The amount of text doesn't matter, since this is a self-adjusting construction.

2: This is a space...

...and here's some text that serves no other purpose than to fill this space.

This container has 'width: auto' declared.

3: This is a space...

...and here's some text that serves no other purpose than to fill this space.

This container has 'width: auto' declared.

4: This is a space...

...and here's some text that serves no other purpose than to fill this space.

The amount of text doesn't matter, since this is a self-adjusting construction.

5: This is a space...

...and here's some text that serves no other purpose than to fill this space.

The amount of text doesn't matter, since this is a self-adjusting construction.

6: This is a space...

...and here's some text that serves no other purpose than to fill this space.

7: This is a space...

...and here's some text that serves no other purpose than to fill this space.

8: This is a space...

...and here's some text that serves no other purpose than to fill this space.

The amount of text doesn't matter, since this is a self-adjusting construction.

#test div { 
background: #ddd; 
border: solid 1px #fff;
}

/* the first construction */
#independent1 {
margin: 0 -10px 50px 10px; 
width: 60%; }
#independent1 div {
margin: 10px -10px -10px 10px; 
width: 100%;}

/* ...and seven more... */

/* the usual IE hacks */
* html div#test div {
position: relative; 
}

/* dark test-container */
#test { 
overflow-x: hidden;
}

Notes:

These 8 constructions are in the flow (not floated or positioned), and are controlled by their width and/or margins. Quite ordinary constructions, with the necessary styling to work quite well across most of browser-land.

Internet Explorer 6 fails on all tests initially. However, thanks to the usual hacks – and a heavy dose of negative margins at the right places, it apparently handles all constructions reasonably well.

Internet Explorer 6 is also disturbed by its faulty 'width:' calculation and the auto-expanding bug, hence the 'overflow-x: hidden' on test-container. What a bugger!

go to test-menu