Results 1 to 4 of 4

Thread: HTML Tables

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Posts
    492

    HTML Tables

    I have a little issue that I need to resolve. When I create a table that takes up most of the screen from top to bottom, there is always a small space, approx. .25 of an inch at the top and bottom of the screen. What do I need to do to get ride of this space at the top and also at the bottom of the screen.

    Second issue is when I put 2 tables on a page back to back. Meaning I create on table then after the closing tag I open up another table and keep going. When viewing this on the screen I see a space between the 2 tables, but I never put a break there. What needs to be done to have both of the table right on top of each other.

    Help is greatly appreciated.

    Thanks

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343
    CSS Styling required for your page

    1) Body { margin:0; padding: 0 }
    2) Table { margin: 0; padding:0 }

    Something like the following
    Code:
    <head>
    <style type='text/css'>
    Body { 
        margin:0; 
        padding: 0; 
    }
    Table { 
        margin: 0; 
        padding:0;
    }
    </style>
    </head>
    Best if you read up on it, no guarentees that it will work, or work properly - depends on browsers...


    Vince
    Last edited by Ecniv; Jul 7th, 2004 at 04:30 AM.

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Posts
    492
    Thanks Vince,

    Exactly what I was looking for.

  4. #4
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994
    Originally posted by mrstuff68
    Thanks Vince,

    Exactly what I was looking for.
    If you're using tables for layout, you might reconsider, and use CSS instead... Really makes everything easier
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width