What's wrong with my css?

Discussion in 'CSS' started by wiseboke, Nov 18, 2010.

  1. #1
    wiseboke, Nov 18, 2010 IP
  2. ronc0011

    ronc0011 Peon

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The image I'm seeing is the top border of a box. And it's the same for both files.

    BTW the address says it's two files on the same server.

    Would probably need to see the code/ markup.
     
    ronc0011, Nov 18, 2010 IP
  3. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #3
    Show us the markup, css or share the url to check.
     
    radiant_luv, Nov 18, 2010 IP
  4. wiseboke

    wiseboke Peon

    Messages:
    133
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    wiseboke, Nov 18, 2010 IP
  5. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The gap is caused by the default margin of your navigation list. You can remove it by using a proper CSS Reset, or by adding this to your stylesheet:
    
    * {
    border: 0;
    margin: 0;
    padding: 0;
    }
    
    Code (markup):
     
    Cash Nebula, Nov 22, 2010 IP
  6. wiseboke

    wiseboke Peon

    Messages:
    133
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks,dude,you rock
    It works like a charm
     
    wiseboke, Nov 22, 2010 IP
  7. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #7
    Every browser has it's own CSS layout "integrated" (paddings, margins, borders n stuff...) that should be "resetted" before adding any other CSS properties!
     
    CSM, Nov 22, 2010 IP