Question about CSS Class.
Page 1 of 1
Question about CSS Class.
In the example here in the CSS tutorialI can't understand,where should I put the class to change the color of the links?
the Example is like that
<p>Grapes for white wine:</p>
<ul>
<li><a href="ri.htm" class="whitewine">Riesling</a></li>
<li><a href="ch.htm" class="whitewine">Chardonnay</a></li>
<li><a href="pb.htm" class="whitewine">Pinot Blanc</a></li>
</ul>
<p>Grapes for red wine:</p>
<ul>
<li><a href="cs.htm" class="redwine">Cabernet Sauvignon</a></li>
<li><a href="me.htm" class="redwine">Merlot</a></li>
<li><a href="pn.htm" class="redwine">Pinot Noir</a></li>
</ul>
then You said that we will add
a {
color: blue;
}
a.whitewine {
color: #FFBB00;
}
a.redwine {
color: #800000;
}
where should we add them in the above example?
Re: Question about CSS Class.
Hi AliceThere are three ways you can apply CSS to an HTML document. These methods are all outlined in lesson 2: http://html.net/tutorials/css/lesson2.php
I hope it helps.
- Andreas, HTML.net
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.
Page 1 of 1