Results 1 to 3 of 3

Thread: Aligning a table

  1. #1
    Join Date
    Nov 2006
    Location
    Northeast USA
    Posts
    408
    Thanks
    8
    Thanked 30 Times in 28 Posts

    Question Aligning a table

    Hello,

    A Queston that has been bothering me for a while:

    I have a table and I want that table to be exactly at 0px to the top. I have tryed a "style", postion:absoulte or somthing, but I can't just put in Top: 0px; I need a "Left" string, but I don't want it to go left, I have a center tag so I don't need the command. Is there any way to do this?

    A "Thanks" will be added to any HELPFUL replies.
    Thanks
    -Ben -- THE DYNAMIC DRIVERS
    My Links: My DD Profile||My Youtube Video Tutorials||DD Helping Coders||DD Coders In Training
    I told my client to press F5, the client pressed F, then 5, *facepalm*

  2. #2
    Join Date
    Nov 2005
    Posts
    40
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    You can do in the body tag margin="0"
    you can also do something similar in a css style sheet.
    If you can't do either, you can do something like <table style="margin:-10px;">
    It isn't pretty and it might make things look ugly, but those are some things you can try.

  3. #3
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    You can do in the body tag margin="0"
    That's invalid HTML

    Try this:
    HTML Code:
    <style type="text/css">
    body { margin:0; }
    </style>
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

Bookmarks

Posting Permissions

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