Mark Fellowes wrote:
> http://www.pamshop.com/Template1/exp8.html
>
> Now I'm wondering if I'd be better off using "absolute" positioning
> instead. The thing is I wanted to see what it would look like if I
> made content2 760px. It threw the side navigation to the bottom. So
> without getting into here why that happened I'm rethinking the
> layout. Since you can see the layout is a more "boxy" approach does
> "absolute" positioning lend itself better to those situations ? Hope
> my question makes sense.
Sure it does, but 'floats' for layout are generally a bit safer -
although not necessarily any easier to work with - than 'absolute
positioning'.
I suggest you try to add...
#content2 {
width: 760px;
margin-left: -240px;
position: relative;
}
...and see if that's somewhat close to what you want.
The #content2 becomes 760px wide, but the left margin is pulled inside
its area by 240px - making the left part of #content2 take up no space
while still being visible. The floating #content2 is only taking up
520px space sideways - just like before.
The method is used and described here...
<http://www.gunlaug.no/contents/wd_demo_float_01.html>
...and links to more information about floats and this negative margin
method is listed in the right column on that page.
If you need more information about how to control float-layouts this
way, just ask - once you have done a bit of testing on your own.
regards
Georg
--
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/