[need help]wanna shorten the gap between title and description

Discussion in 'CSS' started by zendengoh, Oct 27, 2008.

  1. #1
    [​IMG]

    below is the css.style code, i have try to edit several time, dont know what going wrong..
    h1 {
    	font-size: 4em;
    	text-align: left;
            border:1px solid black;
    	}
    
    #headerimg .description {
    	font-size: 1.5em;
            font-style: italic;
    	text-align: left;
            margin: 0 0 0 80px;
            border:1px solid black;
    	}
    Code (markup):
    /*	Begin Headers */
    h1 {
    	padding-top: 70px;
    	padding-left: 30px;
    	}
    Code (markup):
    novish here, will appreaciate for your help:eek:
     
    zendengoh, Oct 27, 2008 IP
  2. judge0

    judge0 Peon

    Messages:
    400
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i think u want to use absolute position
     
    judge0, Oct 27, 2008 IP
  3. LeetPCUser

    LeetPCUser Peon

    Messages:
    711
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #3
    By default the h1 tag is going to have padding on it. Try appending the code below.

    
    h1
    {
     padding-bottom:0px;
     margin-bottom:0px;
    }
    
    Code (markup):
    Also try the same for your div. Images tend to have padding.
     
    LeetPCUser, Oct 30, 2008 IP