SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: table width?~?

Hybrid View

  1. #1
    SitePoint Enthusiast stephan_100's Avatar
    Join Date
    Nov 2001
    Location
    Toronto, Ontario, Canada
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question table width?~?

    When I declare table width as 100%, why does it not go across the whole screen?

    Here is my script:


    <html>
    <head><title>Practice</title></head>

    <body>

    <table width='100%' cellspacing='0' cellpadding='0' border='0'>
    <tr width='100%'>
    <td width='100%' bgColor='black'>
    <font color='white'>This is the text</font>
    </td>
    </tr>
    </table>

    </body>
    </html>



    When I put this script on my page, I always end up having white spaces on both sides of the table. Can anyhelp me fix this so that the table starts at the very top of the screen and stretches from the left of the screen to the right of the screen?
    Stephan M.
    Computer Forums -- Supplies All The Help You Need
    http://www27.brinkster.com/cforums

  2. #2
    Net Senior Citizen tommatthews's Avatar
    Join Date
    Apr 2001
    Location
    Sydney Australia
    Posts
    869
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Put in your body tag-
    topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"


    affordable website design

    :: sydney australia ::

  3. #3
    SitePoint Enthusiast stephan_100's Avatar
    Join Date
    Nov 2001
    Location
    Toronto, Ontario, Canada
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks
    ill give it a try and see if it works
    Stephan M.
    Computer Forums -- Supplies All The Help You Need
    http://www27.brinkster.com/cforums

  4. #4
    What? Maelstrom's Avatar
    Join Date
    Oct 2001
    Location
    Whistler BC originally from Guelph Ontario
    Posts
    2,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also some browsers have built in white space around the actual site.
    Maelstrom Personal - Apparition Visions
    Development - PhP || Mysql || Zend || Devshed
    Unix - FreeBSD || FreeBsdForums || Man Pages
    They made me a sitepoint Mentor - Feel free to PM me or Email me and I will see if I can help.


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
  •