Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

an easy one, but not for a newby

Status
Not open for further replies.

mwebbo1

Technical User
Jul 11, 2002
71
US
I think that I have this righ. When I define the <p> in the style sheet, I can also define a variation of the <p> and it is called a class. so...if that is the case, then if this were my <p> from the SS:
<code>
p {
font-family: Arial, helvetica, verdana, sans-serif;
color: #7B80A0;
background-color: transparent;
font-variant: normal;
text-decoration: none;
font-weight: normal;
font-style: normal;
font-size: 12px;
line-height: 16px;
</code>

What would be the easiest way to make the color #9F0000 when I need to highlight several small things in the site.
I know that this is a very basic question, but this will put me right where I need to be, I am teaching myself this as I go along and this is the impression that I have had and need a final answer to...thanks again!
 
copy your p tag but name it something like p.one
then what ever you want highlighted put this tag around it <class=&quot;one&quot;>i want this highlighted</class> or you can just select what you want highlighted and change the color of the text :) That might be easier but wasnt sure which way youd want to go

[rockband]
whos that behind you?
 
can I also do that with <h> tags?
 
actually, I am trying to chang color of certain words in a paragraph, but <p> breaks the line and <h> throws in a soft break, I need change the color in the paragraph without messing up the flow.
 
you could do something like this
<HTML>
<HEAD>
<Style>
p {
font-family: Arial, helvetica, verdana, sans-serif;
color: #7B80A0;
background-color: transparent;
font-variant: normal;
text-decoration: none;
font-weight: normal;
font-style: normal;
font-size: 12px;
line-height: 16px;
}
.txt {
font-weight: bold;
color: #FF0000;
}

</Style>
</HEAD>
<BODY>
<p>I think that I have this righ. <font class=&quot;txt&quot;>When </font>I define the in the style sheet, I can also define a variation of the <p> and it is called a class. so...if that is the case, then if this were my <p> from the SS:
</p>

</BODY>
</HTML>
You cannot mandate productivity, you must provide the tools to let people become their best.
-Steve Jobs
admin@onpntwebdesigns.com
 
thanks...a step closer to understanding all of this
 
<span class=&quot;whatever&quot;>This is another way to change only parts of text with no breaks.</span>

Rick It's a pleasure to know that I've helped you. If I have,
please click the link below to let me know. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top