SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Enthusiast kycomputing's Avatar
    Join Date
    May 2002
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Building a website with tables

    Hello all,
    I have been trying to design a website with tables, but I am having trouble getting the table(s) flush with the left side of the web-page/browser. Any ideals how to overcome this problem? Thanks for your time.

    Luke

  2. #2
    Quake 1 Addict CreedFeed's Avatar
    Join Date
    Feb 2002
    Location
    Milwaukee, WI
    Posts
    296
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In your body tag include the following:

    topmargin=0 marginwidth=0 leftmargin=0 marginheight=0

    so it should look like

    <body topmargin=0 marginwidth=0 leftmargin=0 marginheight=0>
    -- Steve Caponetto
    Quake 1 Resurrection :: CreedFeed

  3. #3
    SitePoint Enthusiast steamengine's Avatar
    Join Date
    Mar 2002
    Location
    Vancouver
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    body - margins

    Hi kycomputing:

    I saw your intro message, I'm fairly new here too.

    To get that table flush, you'll have to set your body margins to zero.

    I use a total overkill tag that zeros the margins on almost all versions of browsers:

    <body leftmargin="0" rightmargin="0" topmargin="0" botmargin="0" marginwidth="0" marginheight="0">

    I know there's redundancy in there, but that's how I get it to work consistently. You can also change the body and other tags using stylesheets, which I'm becoming a big fan of, but that's another story.

  4. #4
    SitePoint Enthusiast kycomputing's Avatar
    Join Date
    May 2002
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Talking

    Thanks for the help, it was greatly appreciated.
    Learning something new every day.

    Luke

  5. #5
    SitePoint Wizard
    Join Date
    Oct 2001
    Location
    Tucson, Arizona
    Posts
    1,858
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I wouldn't use tables for layouts, much less use non-standard attributes in my BODY tag. The least you could do would be to use CSS to control the page's margins.
    Code:
    body { margin: 0; padding: 0; }

  6. #6
    SitePoint Enthusiast kycomputing's Avatar
    Join Date
    May 2002
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    matt, do you know of a website that has a good tutorial on creating/using CSS for that purpose? Thanks.

  7. #7
    Gone!
    Join Date
    Aug 2001
    Location
    Witty Location Parody
    Posts
    3,889
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by kycomputing
    matt, do you know of a website that has a good tutorial on creating/using CSS for that purpose? Thanks.

    Hi there

    Im not Matt, but heres a couple of excellent beginner tutorials, right here at sitepoint:

    http://www.webmasterbase.com/article/309
    http://www.webmasterbase.com/article/43

    Happy reading

  8. #8
    SitePoint Enthusiast kycomputing's Avatar
    Join Date
    May 2002
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the links

  9. #9
    SitePoint Member
    Join Date
    May 2002
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Only in NN4 will you have issues with tables, As someone suggested you can use a div or css.

    But do noy use any of the following tags leftmargin="0" rightmargin="0" topmargin="0" botmargin="0" marginwidth="0" marginheight="0".

    They are not standard and thus your site will not be compliant.


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
  •