RE: [PHP] Div-element at same vert. position?
| From: | tedd | Date: | Tue, 28 Mar 2006 22:00:44 +0000 |
| Subject: | RE: [PHP] Div-element at same vert. position? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-232778@lists.php.net to get a copy of this message | ||
At 2:21 PM -0600 3/28/06, Jay Blanchard wrote:
[snip] what's wrong with absolute positioning? [/snip] Because there is only one absolute; that there are no absolutes. IE, FF, Opera and others all treat the box model differently.That's if you use margins and padding. The way I understand it, the box model -- http://www.w3.org/TR/REC-CSS2/box.html -- is problematic because M$ looks at things differently than everyone else (i.e., W3C et al) -- which has led to many different fixes (hacks), such as: http://tantek.com/CSS/Examples/boxmodelhack.html But, if you are trying to absolutely position things, then using absolute without padding and margins is the way to go. For example, I've had a couple of clients who wanted their web sites to look exactly like their designers illustrations without any alteration or slack whatsoever on any browser. The only way I did it was to use absolute positioning. But, like everything else (including this topic), it has it's place. tedd -- -------------------------------------------------------------------------------- http://sperling.com