Jump to content


Photo
- - - - -

CSS code for line spacing?


  • Please log in to reply
6 replies to this topic

#1 rattigan

rattigan

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 07 May 2011 - 10:58 PM

I'm using the free PageLines Platform theme. I'd like to change the spacing between lines in blog posts. Is there a way I can do that by inserting code into the CSS? Thanks.

#2 kastelic

kastelic

    Advocate

  • Members

  • 3081 posts
  • Country: Country Flag

Posted 07 May 2011 - 11:04 PM

That would be the line-height property:

Please Login or Register to see this Hidden Content



#3 rattigan

rattigan

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 07 May 2011 - 11:11 PM

Thanks for that link. I've inserted it under the size code (which works fine), and it doesn't seem to be working, however. Any ideas?

#4 kastelic

kastelic

    Advocate

  • Members

  • 3081 posts
  • Country: Country Flag

Posted 07 May 2011 - 11:19 PM

How about a link to your site? You may be targeting the wrong element or not being specific enough in your rule.

#5 rattigan

rattigan

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 07 May 2011 - 11:20 PM

Please Login or Register to see this Hidden Content

.

Thanks for your help!

(BTW, if you have some way of seeing my CSS, you'll notice the numbers are random for the line-height. I was just experimenting. I tried it with both % and px.)

#6 kastelic

kastelic

    Advocate

  • Members

  • 3081 posts
  • Country: Country Flag

Posted 07 May 2011 - 11:30 PM

Here's the rule you want to target:

Please Login or Register to see this Hidden Content



#7 rattigan

rattigan

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 07 May 2011 - 11:37 PM

Thanks, Jimmy. You're awesome.