PDA

View Full Version : A bit of CSS layout


littleprince
08-29-2005, 05:39 PM
Hi guys,
Just about done finishing up my first PP site.
In css, if I have a 640px wide wrapper,
and inside I want 2 boxes, one maybe 400px and the other 210px,
that should make 10px on the left of one, 10px in the middle, 10px on the right for margin right?

How would the css go for this to make it work in both ie and Firefox?
I'm getting different output now, and I'm not really sure why.

For an example, see
http://prince.little-kingdom.com?x=about
Its the blue dotted region that won't display the widths i want...

Connie
08-29-2005, 06:18 PM
Hi!

it is very well known that IE has a different and wrong method to calculate boxes

you will find all necessary information at http://www.positioniseverything.net/ or very detailed here: http://tantek.com/CSS/Examples/boxmodelhack.html

we must not discuss it here, I'm so tired of IE CSS-bugs :rolleyes:

littleprince
08-29-2005, 06:40 PM
Actualy, thats why I'm asked, a little annoyed at it, and was going for the quickie
=)
I'm sure its solvable though.