Web Analytics Made Easy -
StatCounter IE Table Padding/margin? - CodingForum

Announcement

Collapse
No announcement yet.

IE Table Padding/margin?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • IE Table Padding/margin?

    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/

  • #2
    Try adding * {padding:0; margin:0;} over all ur css.
    Eric "PitbullMean" Melo
    Always Start your layout with*{border:0; margin:0; padding:0;}
    Be sure to Thank ALL Users who give assistance.

    Comment


    • #3
      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 -
      Code:
      <!--
      [COLOR="Red"]* {
      margin: 0;
      padding: 0;
      border: none;
      }[/COLOR]
      #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;
      Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
      Use a DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

      Comment


      • #4
        That didn't seem to change much.

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

        Comment


        • #5
          Its not really a wild card its more of forcing a clean slate before the browser reads the code.
          Eric "PitbullMean" Melo
          Always Start your layout with*{border:0; margin:0; padding:0;}
          Be sure to Thank ALL Users who give assistance.

          Comment


          • #6
            Originally posted by PitbullMean View Post
            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?

            Comment

            Working...
            X