SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: margins

  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2000
    Location
    Montreal, Canada
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi
    I have tried the css coding and it ddn t work...I also tried the HTML margintop, left ="0" that didn t work either....could it be that the cell spacing is overriding the css.....if this is the cas, how can I still keep the space between cells but have 0 left and top margin.....
    Thank you again
    Scarlet

    ------------------
    http://www.learning2earn.com

  2. #2
    SitePoint Enthusiast
    Join Date
    Mar 2000
    Location
    Montreal, Canada
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi all
    I am having a problem with my left margin....I want the red table with the links to have 0 margins so the black behind it will only show between the cells of the red table...not to the left or on top....does anyone know how to fix it...
    Thanks
    Scarlet

    ------------------
    http://www.learning2earn.com

  3. #3
    SitePoint Wizard silver trophy Karl's Avatar
    Join Date
    Jul 1999
    Location
    Derbyshire, UK
    Posts
    4,411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The CSS code for margins is:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    margin-right: 0px;
    [/code]

    That would give margins of 0 pixels, if you were going to do all of them as 0 pixels or all the same value then it is easier to use:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
    magin: 0px;
    [/code]

    ------------------
    Karl Austin
    KDA Web Services
    "Everyone has a photographic memory. Some just don't have film."

  4. #4
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    The full code would be:
    [code]
    &lt;style&gt;
    body { margin:0;}
    &lt;/style&gt;
    [code]

    Place it in your head tag. If your using external style sheets just add the body {margin:0;} to your style sheet.

    ------------------
    Wayne Luke - Sitepoint Moderator/Internet Media Developer
    Digital Magician Studios - Making Magic with Web Applications
    wluke@digitalmagician.com

  5. #5
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you're not into CSS, this HTML might work (not sure...worth a try, though):

    &lt;body topmargin="0" leftmargin="0"&gt;

    Hope this helps.



    ------------------
    Chris Bowyer
    MyCoding.com: Join our mailing list for launch notification!
    "I'm not an insomniac, I'm a web designer."

  6. #6
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd re-arrange your tables so that the ones without spacing are seperate from the others...then from there it's easy.



    ------------------
    Chris Bowyer
    MyCoding.com: Join our mailing list for launch notification!
    "I'm not an insomniac, I'm a web designer."


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
  •