CSS line-height question about increasing it for only the wordpress post title

Discussion in 'CSS' started by phaze3131, May 1, 2008.

  1. #1
    I'm still getting used to css and I can change the line-height of my content area on my blog here:

    www.wowpvpcheats.info

    I know this code here can change the line height of the content

    /* ---------- @ content Area -----------*/

    /*Home*/
    .padding{
    padding:10px;

    }
    .content {
    font-size:14px;
    line-height:20px;
    margin-right:10px;
    margin-top:100px;
    position: relative;
    top:-80px;
    color:#000000;

    }



    But I am trying to just change the line-height of each post title and not the whole content section.

    I hope this makes sense. Thanks much.

    Travis
     
    phaze3131, May 1, 2008 IP
  2. ourblink

    ourblink Peon

    Messages:
    25
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    With h1 top and bottom margin
    ------------------------------

    div, h1, h2, p, form, label, input, textarea, img, span{
    margin:0; padding:0;
    } /* zero padding and margin of properties */

    #content h1,h2{
    font-size:14px;
    font-family:Arial, Helvetica, sans-serif;
    margin:10px 0 12px ; /* Create 10px top margin and 12px bottom margin your Title */
    }

    --------------------
    then ....

    <div id="content">
    <h1>Your Title here</h1>
    </div>
     
    ourblink, May 1, 2008 IP
  3. Hades

    Hades Well-Known Member

    Messages:
    1,873
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    150
    #3
    Uhm, actually, changing h1 would mess up your blog header title. You need to only change h2.

    Also, creating line height with a margin is not the best way to do it.

    Try this:

    Or just do this:
    
    [CODE].content h2 a,
    .content h2 a:visited
    {
    	font-size: 1.5em;
    	margin:0px;
    	padding:0px;
    	color:#003E7D;
    [COLOR="Red"]line-height:##px;[/COLOR]
    
    	
    	}
    Code (markup):
    [/CODE]
     
    Hades, May 1, 2008 IP