Click to See Complete Forum and Search --> : Basic question about styles definitions


billybw
03-27-2008, 12:30 PM
In writing the code for my site I have used "p" and blockquote as ways to start a new paragraph of text. I need to find at least two more letters or symbols that I can use in the same way as "p", but with different definitions for font-size, etc.

I tried to use h1, h2, etc, but that seems to automatically produce bold text, which I don't want.

I also tried to use "p.a", but can't get it to work at all. My definition for it seems to be ignored, although I know the format is correct.

Are there any other letters or symbols besides "p" that can be used to define what a section text will look like?

Thank you

jasonahoule
03-27-2008, 12:33 PM
<p> is the paragraph element. You should use CSS to style it however you want. Just use a different class.

<p class="style1">Text text text</p>
<p class="style2">Text text text</p>

billybw
03-27-2008, 12:56 PM
Thanks for the quick reply. But could you also please give an example of the format for defining "style1". etc

Thank you

jasonahoule
03-27-2008, 02:06 PM
Here is a quick example:

<style>
.style1 {
color:#FF0000;
font-weight:bold;
}
.style2 {
color:#000000;
font-size:smaller;
}
</style>

billybw
03-27-2008, 02:32 PM
Thanks. After i finally put the period in front of style1 (.style1), I got it to work.
Thank you