...

View Full Version : IE Table Padding/margin?



NeoMoon
04-12-2009, 01:57 AM
Alright, so here's the problem:

In a page I'm making, I've added a table to put results from an SQL query. The problem is, is that IE adds a margin/padding to the outside of the table on every side. Any ideas on how I'd go about stopping this?

http://highscores.throstware.com/

PitbullMean
04-12-2009, 02:07 AM
Try adding * {padding:0; margin:0;} over all ur css.

Excavator
04-12-2009, 02:09 AM
Hello NeoMoon,
I'm not sure about tables...
To get rid of default margin/padding though, add this bit in highlighted in red to your CSS -
<!--
* {
margin: 0;
padding: 0;
border: none;
}
#mainDiv {
position: relative;
width: 770px;
z-index: 0;
overflow: hidden;
background-color: #FFFFFF;
visibility: visible;
margin: 0 auto;
}
body {
background-color: #000;
text-position: center;
}
#insideDiv {
position: relative;
z-index: 2;
width: 762px;
margin: 0 auto;
height: 684px;
}
#banner_top {
background-color: #FFF;
background-image: url(Images/Banner_Top.jpg);
background-repeat: no-repeat;
height: 145px;
width: 762px;
top: 4px;
position: relative;

NeoMoon
04-12-2009, 02:09 AM
That didn't seem to change much.

Though, I didn't know you could use * as a wildcard. Thanks for the knowledge.

PitbullMean
04-12-2009, 02:26 AM
Its not really a wild card its more of forcing a clean slate before the browser reads the code.

NeoMoon
04-12-2009, 03:54 AM
Its not really a wild card its more of forcing a clean slate before the browser reads the code.

Mm, gotcha. Good to know; thank ya.

Anybody else have a suggestion on how to fix the original problem?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum