Margin problem in IE

Skolar

Limp Gawd
Joined
Aug 19, 2004
Messages
307
Okay, I'm revamping my website after I screwed it up trying to get it more browser friendly. Its just a mess right now and not worth fixing for how good it is. I'm trying to get the code to work like it does for [H]ardOCP's main site. Where the side columns, top and bottom go fully to the margins. I've got it working in Firefox, but not IE. The opposite problem I've been having in the past. I wrote up a quick test page for the basic code.

http://tyler.rencher.org/test.html

If you have any ideas on how to eliminate the margin in IE please tell me.

Skolar
 
maybe try
Code:
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="margin: 0;">

- OR -

Code:
<body style="margin: 0; padding:0;">
 
Hmmmm...the style tag somehow worked when the straight margin code didn't...interesting. Thanks a lot dude, I learned something new today.

Skolar
 
Skolar said:
Hmmmm...the style tag somehow worked when the straight margin code didn't...interesting. Thanks a lot dude, I learned something new today.

Skolar

no problemo. also, using a DOCTYPE would help a lot, as it tells the browser which rules to apply to your page when it renders it.
 
Back
Top