Previous Message
Next Message

Re: [css-d] simple(?) css layout

Sent by Andrew Clover on 29 January 2002 11:11


Noah [EMAIL-REMOVED]> wrote:

> I've managed to accomplish this (at least in IE 5.5 and Moz 0.9.6 / pc) by 
> giving the content div a left margin that pushes it beyond the menu, and 
> not giving it a float (see <http://tookish.net/temp/layouttest.html>).

This is a good approach.

> This seems a little cheesy to me (though I'm not sure why)

I don't know why either, it's fine!

> and it doesn't come off very well in NS 4.7.

Mm. N4 adds the margin to the space taken up by the float. The simple
way around this is to give the menu div 'position: absolute;' instead
of 'float: left'. Works great then!

> What I'd really like to do is float the content div and just have it fill 
> up the available space to the right of the menu.

This doesn't work because for floated elements you must specify a width.
IE allows you to get away without but Mozilla does not. And of course it's
impossible to set a width of '100%-200px' which is what you would need to
say. This is a bit of a shortcoming in CSS really.

-- 
Andrew Clover
[EMAIL-REMOVED]
http://and.doxdesk.com/
Previous Message
Next Message

Message thread: