Problem with html and css

Discussion in 'HTML & Website Design' started by satrebor, Oct 16, 2012.

  1. #1
    Hello guys, I have very annoying problem, how to fix that up? Here is my css code.

    #top_line {
            height:40px;
    	background-color:#000;
    	font-family:Verdana, Geneva, sans-serif;
    	color:#FFF;
    	margin-top:0px;
    	
    }
    Code (markup):
    WHAT i GOT IS THAT
    [​IMG]
    How to fix that empty places where red marks shows, I want line above as google has which goes all along the site width.How to do that.

    How to make that black line along whole page width.
    [​IMG]
    as this google menu line.
     
    satrebor, Oct 16, 2012 IP
  2. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #2
    You have to remove the padding and margin from the body via css, so here you go, paste this in your stylesheet.

    body {
    margin: 0;
    padding: 0;
    }
    Code (markup):
     
    Colleen, Oct 16, 2012 IP
  3. satrebor

    satrebor Active Member

    Messages:
    244
    Likes Received:
    3
    Best Answers:
    2
    Trophy Points:
    65
    #3
    Thank you very much
     
    satrebor, Oct 16, 2012 IP
  4. steve0

    steve0 Member

    Messages:
    28
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #4
    yeah, you always need to use a CSS Reset - as most browsers apply their own CSS rules unless you tell them not to!
     
    steve0, Oct 17, 2012 IP