can i use the same class name for different types of elements? i.e.
div.footer
&
a.footer
in other words i want to define some settings for a footer <div> and also some settings for text links in the footer <div> and i would naturally want to call them both .footer but i am not sure how the class definition works.That works fine.
<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/selector.html#class-html">http://www.w3.org/TR/REC-CSS2/selector.html#class-html</a><!-- m -->
div.footer
&
a.footer
in other words i want to define some settings for a footer <div> and also some settings for text links in the footer <div> and i would naturally want to call them both .footer but i am not sure how the class definition works.That works fine.
<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/selector.html#class-html">http://www.w3.org/TR/REC-CSS2/selector.html#class-html</a><!-- m -->