SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: No side margins

  1. #1
    SitePoint Addict gthorley's Avatar
    Join Date
    Oct 2000
    Location
    Canada
    Posts
    392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If your page is comprised of a table with the width at 100% how can you ensure that the edges use the screen up completely so the background of the table fills the screen?

    This seems to work but is it like shooting a mouse with a shotgun.
    <body marginheight="0" topmargin="0" vspace="0" marginwidth="0"
    leftmargin="0" hspace="0" style="margin:0">

  2. #2
    SitePoint Wizard
    Join Date
    Jan 2001
    Location
    Milton Keynes, UK
    Posts
    1,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    On the style attributes use the following:

    Code:
    style="margin: 0px; padding:0px"
    The padding is in there because Opera has used the padding attribute in some versions whereas IE5 and N6 just use the margin attribute.

  3. #3
    Gong!
    Join Date
    May 2000
    Location
    Helsinki, Finland
    Posts
    229
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here is a pretty comprehensive explanation about margins, how to get rid of them and the browser compability:

    http://mtl.uta.fi/jkorpela/www/margins.html
    HighCheats - game cheats, codes, tips and tricks for PC and various console platforms


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
  •