calculating widths depending on margin, div, padding

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

calculating widths depending on margin, div, padding

Post by update »

Hi all,

I'm trying to set up a new site relying on div and css (what an adventure :) )

Now I got stuck in calculating the widths of page and different elements (divs). It seems that all these browsers out there are handling this in a different manner :evil: (to check it I use Firefox 1.5+, Opera 8+, Netscape 7+, IE 6+, avant 10+) .
Am I going to be forced to use different style sheets and a browser detection or is there a simpler way to handle this? How do you deal with this one?
Any help is really appreciated!
Many thanks in advance!

Greetings
claus
Ren.Hoek
Posts: 34
Joined: Thu 3. Mar 2005, 21:38
Location: Augsburg/Germany
Contact:

websites

Post by Ren.Hoek »

Hi,

oh yes, this _is_ a pain in the a**!
Therefore, there a loads of websites dealing with hacks, types of browser detection and so on.

Me personal, I tend to create layouts where it doesn't matter that much if the div... is some pixels different in size. ("floating...")

Quickly chosen further reading:
http://www.alistapart.com/articles/
http://www.css4you.de/
http://virtuelvis.com/archives/2004/02/css-ie-only
http://tjkdesign.com/articles/branching.asp

Greetings, Ren Hoek
Post Reply