User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 423,999 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,143 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting

hmmm, expert CSS cheat ?

Join Date: Jul 2004
Location: Wales
Posts: 735
Reputation: DaveSW is on a distinguished road 
Rep Power: 6
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: hmmm, expert CSS cheat ?

  #3  
Feb 21st, 2005
ok go with the box model since I have a lecture in 15 mins:

In IE, you set the width of an object, and margins, padding, etc are subtracted from that width.

In Moz, you set a width, and margins, padding etc are added to that width.

So if you have a width and some padding on an object, it will have a different total width in the two different browsers.

So the workaround (not the hack):
Use nested elements:
<div id="div1"><div id="div2">

</div></div>
Now we apply a width to div1 (our container), and put margin/padding etc on div2 so that both browsers will render exactly the same.

I'll look at your other problem later if I have a chance. http://www.bluerobot.com/web/layouts/ have some good layouts
Reply With Quote  
All times are GMT -4. The time now is 7:45 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC