PDA

View Full Version : Working with CSS styles


gigiloumill
07-24-2010, 01:26 PM
Guys, does someone know who to set up paragraphs in css to look different from each other. I need to show 2 different types of fonts for the text. The text is set up in css as p { }. thanks

gentleone
07-24-2010, 02:47 PM
Refer first to the div tag there in like for example:

#sidebar p {styles here}
#content p {styles here}
Or give the p tags a class.

<p class="name">text here</p>

<p class="othername">text here</p>

p.name {styles here}
p.othername {styles here}
I prefer to use the first method... is easier, because otherwise you'll have to think of/come up with class names for those p tags that are semantically meaningful.

gigiloumill
07-24-2010, 04:17 PM
Thank G..However, I'm going to play dumb on this one...I'm still confused...

gentleone
07-24-2010, 04:24 PM
Okay, what's confusing you? I mean... I gave you even examples. ;)

gigiloumill
07-24-2010, 04:33 PM
You surely did.. My problem is that I'm confused on how to implement...While in "properties" I can choose "paragraph" but then, I can't add a class...Thanks

gentleone
07-24-2010, 05:15 PM
I see, sorry... I'm not sure either how to do this through the 'properties' panel. I only hand-code in code view... my comfort zone :)

d a v e
07-24-2010, 09:49 PM
with the p selected choose a class from the drop down
like this