table position question

Discussion in 'HTML' started by RA, Jun 23, 2003.

  1. RA

    RA Guest

    Is there any way to make a table butt up to the absolute left and top corner
    of a web page? My entire page is a 2-column table with different background
    colors for the 2 columns, and having a strip of either color across the top
    above the table or down the left side of the table is distracting and sloppy
    looking. Thanks!
     
    RA, Jun 23, 2003
    #1
    1. Advertising

  2. RA

    Josh Lee Guest

    RA wrote:

    > Is there any way to make a table butt up to the absolute left and top corner
    > of a web page? My entire page is a 2-column table with different background
    > colors for the 2 columns, and having a strip of either color across the top
    > above the table or down the left side of the table is distracting and sloppy
    > looking. Thanks!


    You need to set the margins for your body element. The following rule
    should do the trick:

    body { margin: 0; }

    Hope this helps!
    -Josh
     
    Josh Lee, Jun 23, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Luqman
    Replies:
    1
    Views:
    669
    Luqman
    Feb 7, 2006
  2. Rio
    Replies:
    4
    Views:
    1,228
  3. Replies:
    1
    Views:
    325
    Lloyd Sheen
    Mar 24, 2008
  4. James Wong
    Replies:
    4
    Views:
    525
    James Wong
    Jul 14, 2004
  5. Ted Byers
    Replies:
    9
    Views:
    217
    Ted Byers
    Dec 4, 2008
Loading...

Share This Page