tZ
08-25-2006, 08:56 AM
I'm not certain so I'm just going to ask you more expierienced web gurus if there are any browser bugs for negative margins.
Since, I have created a two column layout and placed a negative margin on content div to get it to "float" to the right of my navigation div.
Si this is a basic skeleton of the html so you get the idea:
<body>
<div id="wrapper"</div>
<div id="navigation"></div>
<div id="content"></div>
</div>
</body>
Then I set a width and height for navigation and gave content a left-margin of the same. So that content sits to the right of navigation. However, at this point content is below navigation to the right. So what I did was set a negative top margin to make up the difference. Are there any browser inconsistencies I should be aware of using this method?
Since, I have created a two column layout and placed a negative margin on content div to get it to "float" to the right of my navigation div.
Si this is a basic skeleton of the html so you get the idea:
<body>
<div id="wrapper"</div>
<div id="navigation"></div>
<div id="content"></div>
</div>
</body>
Then I set a width and height for navigation and gave content a left-margin of the same. So that content sits to the right of navigation. However, at this point content is below navigation to the right. So what I did was set a negative top margin to make up the difference. Are there any browser inconsistencies I should be aware of using this method?