Box Model Hack

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
ljCharlie
Forum Contributor
Posts: 289
Joined: Wed May 19, 2004 8:23 am

Box Model Hack

Post by ljCharlie »

Will anyone explain to me what the Box Model Hack is? This is the page I'm looking at:

http://www.tantek.com/CSS/Examples/boxmodelhack.html

I did the exact thing on my page and it doesn't turn out to be like the example that's shown on that page. Somehow the box shown on Mozilla Firefox is longer than what is showing on IE6.

One thing I don't understand is the following code:

Code: Select all

#maincenter {
	width:280px;
	float:left;
	padding: 0;
	}
html>body #content #maincenter {
	width: 280px; /* ie5win fudge ends */
	}
Specifically, what is html>body #content #maincenter means? I have seen people use it alot but I'm not sure how to use it and why use it. Any explanation is greatly appreciated.
ljCharlie
Forum Contributor
Posts: 289
Joined: Wed May 19, 2004 8:23 am

Post by ljCharlie »

Sorry, I posted in the wrong forum. Maybe it should be in the CSS forum.

( JAM | You're right. Fixed. :wink: )
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

:arrow: Moved to client side :wink:

( JAM | Hah! :lol: )
Post Reply