I'm trying to change the text line height but when I do so in the .css body field I get problems, like it for some reason just doesn't work on certain paragraphs, also I'd like to not have to change the line-height for the entire page. I've been searching for the last hour or so on ways to do this, does anyone know of a way that makes it easier to change these things, like line height, font, for specific content types? I'm aware of the content templates module, I tried wrapping the php with div tags using this and it doesn't seem to work.. if anyone has any advice or can point me in the right direction I would greatly appreciate it.

Comments

monstordh’s picture

you just need to know how to target correctly with css. You'll need to use a combination of IDs and classes to target your text area within your node. changing your body style could be disastrous.

For instance, to target the text you posted here in this node, you could do something like this:

#contentwrapper #main #threecol #content #squeeze .content p {put your attributes here;}

you wouldn't have to be that specific, but if you needed to distinguish it between content on a different page with a different layout, it might come in handy.

hope that makes sense... google css if you're unclear

techguy10’s picture

Thanks, I guess I need to add the #content into my style sheet I was trying to do it with the container but that didn't seem to work which led me to think that just editing the css wouldn't work

webwiseguys’s picture

I have the same problem too, with line height. Instead of having it in a separate CSS file, I have the CSS in my HTML tag, and that doesn't seem to work. I tried the same code on a regular HTML file and it works fine.

code below:

<div align="center" style="position:relative;top:125px;width:122px;height:auto;">
                	<a href="#" style="text-decoration:none;font-size:.625em;line-height:normal;">Download our most recent PDF Newsletter &gt;</a>
                </div>	
monstordh’s picture

can you give me a url to see what you are seeing?

webwiseguys’s picture

taken out