How to position top bar in my website?

Discussion in 'CSS' started by toxicgtr, Mar 27, 2007.

  1. #1
    Hi,

    www.goome.co.nz

    I want to have that top bar that has the links in it, positioned so theres no white space around it like at www.trademe.co.nz. What do i need to do to get it up there?


    Cheers.
     
    toxicgtr, Mar 27, 2007 IP
  2. Rasczak

    Rasczak Peon

    Messages:
    131
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    hi, you just need to zero body's margins :) the quickiest way is to do this:

    <body style="margin:0">

    or - of course - if you want to do that in CSS:

    body {margin:0}

    voila :)
     
    Rasczak, Mar 27, 2007 IP
  3. Josh Inno

    Josh Inno Guest

    Messages:
    1,623
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Don't forget the ; after the 0. Otherwise the line of style is incomplete and likely will not work.
     
    Josh Inno, Mar 29, 2007 IP
  4. AdamSee

    AdamSee Well-Known Member

    Messages:
    422
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    135
    #4
    You don't need to write the semi-colon in. It's basically just saying there's another argument after and if there isn't one, it's perfectly valid. However it's better practice to include it, because at a later stage, it makes it easier to maintain.
     
    AdamSee, Mar 29, 2007 IP
  5. Josh Inno

    Josh Inno Guest

    Messages:
    1,623
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I was under the understanding that it is a code line terminator (like in c++) and that the standard states that if the line isn't terminated it will not work. It maybe that the terminator is allowed to be assumed when the next piece of structure met is a closing bracket, but as you stated that's not the normal case for most lines.
     
    Josh Inno, Mar 29, 2007 IP
  6. AdamSee

    AdamSee Well-Known Member

    Messages:
    422
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    135
    #6
    To clarify; it's not needed at the end of the CSS statement proceeding the close bracket or the double prime for inline styling.
     
    AdamSee, Mar 29, 2007 IP