SitePoint Sponsor

User Tag List

Results 1 to 9 of 9

Thread: Margins

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Feb 2002
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Margins

    I don't want to have any margins in a html page, but every time I have topmargin="0" leftmargin="0" etc... and then load the page the right hand side of the page seems to have a margin but this then goes when I refresh the page this happens both on the local machine and web server any idea how to resolve this problem.

    Any help would be very much appreciated.

    Cheers

  2. #2
    Non-Member mmi's Avatar
    Join Date
    Jun 2001
    Location
    Rhode Island
    Posts
    587
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey - this probably won't solve yer problem. but do you also include these attributes?:
    marginwidth="0" marginheight="0"

  3. #3
    SitePoint Member
    Join Date
    Feb 2002
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi MMI,

    I did a search (should have done first I know) and the following solves the problem.

    <script language="JavaScript">
    </script>

  4. #4
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Using CSS is a good, legitimate method

    Put this in your stylesheet...

    body { margin: 0px }
    Last edited by Bill Posters; Feb 24, 2002 at 17:56.
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature

  5. #5
    <C²: web standards /> cybercodeur's Avatar
    Join Date
    Dec 2001
    Location
    Montréal
    Posts
    729
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by Bill Posters
    Using CSS is a good, legitimate method
    It's actually the best method one can come up at this time...

    Until new technology inprovements prove me wrong that is.
    Denis Boudreau <C²/> - Web Standards & Accessibility
    [+] ICQ number: 115649885 || Email: denis@cybercodeur.net
    [+] Daily Weblog on Web standards and accessibility : CYBERcodeur.net

  6. #6
    SitePoint Wizard Aes's Avatar
    Join Date
    Jun 2001
    Location
    Oklahoma
    Posts
    3,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Technically, the code should be:
    Code:
    body { margin : 0px ; }


    -Colin
    Colin Anderson
    Ambition is a poor excuse for those without
    sense enough to be lazy.

  7. #7
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If we're splitting hairs about it- the closing semi-colon (;&#41; isn't neccessary if the declaration is the last in that block

    So, technically speaking...

    body { margin: 0px }

    ... is spot on

    At least, that's how W3C present it.
    But then, what do they know about it?
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature

  8. #8
    Non-Member mmi's Avatar
    Join Date
    Jun 2001
    Location
    Rhode Island
    Posts
    587
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb has some marginal value

    hey - I think some authors leave a trailing semicolon (typically one word ) so they won't forget to add one if they decide to include another property

  9. #9
    SitePoint Member
    Join Date
    Mar 2002
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Red face table code is wrong

    I have had this problem before expecially in netscape... you have a table that is nit rendering correctly.. change the color of the individual tables and make the page something like black or put border-1 for the tables... something you can not see is on the page.. so yo change the page color so you can see it...
    The original Webspider }{


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
  •