bratta
04.02.2002, 16:11
Hey ppl.
I have a couple of questions here.
1. If I have two elements on a page, where one of them (A) has float:right, and the other one (B) width:100%. Should the width of B be 100% - WIDTH_OF_A?
As far as remember the spec it should, and IE actually does that, but Mozilla and Opera makes B width 100% of the entire document and messes it up. But since both of them does that I guess that that's how it supposed to be?
Simple example:
http://www.dhtmlcentral.com/xhtml/100_percentage_example.html
Though I know there are different ways of doing that, I just thought that was nice (if it worked that way that is)
2. If your viewing this site without the coolMenus you'll see a table with the menu choices on the top (news - projects - scripts et cetera), what would be the best way to space them correctly without using tables? I have tried lots of different ways (float, percentage width, percentage margins, inline display et cetera), but I can't seem to find a way that places the "perfectly" in columns.
Thanks,
-Thomas Brattli-
http://www.bratta.com/
http://www.dhtmlcentral.com/
I have a couple of questions here.
1. If I have two elements on a page, where one of them (A) has float:right, and the other one (B) width:100%. Should the width of B be 100% - WIDTH_OF_A?
As far as remember the spec it should, and IE actually does that, but Mozilla and Opera makes B width 100% of the entire document and messes it up. But since both of them does that I guess that that's how it supposed to be?
Simple example:
http://www.dhtmlcentral.com/xhtml/100_percentage_example.html
Though I know there are different ways of doing that, I just thought that was nice (if it worked that way that is)
2. If your viewing this site without the coolMenus you'll see a table with the menu choices on the top (news - projects - scripts et cetera), what would be the best way to space them correctly without using tables? I have tried lots of different ways (float, percentage width, percentage margins, inline display et cetera), but I can't seem to find a way that places the "perfectly" in columns.
Thanks,
-Thomas Brattli-
http://www.bratta.com/
http://www.dhtmlcentral.com/