Multiple classes ?

admin

Administrator
Staff member
I am trying to get all my text links to have the same attributes of one class, but at the same time I want one of the links to have different a:active and a:hover colors. When I try to have nested a <a class="bla..> within a <div class="bla..> Netscape only applies the outer class. What can I do?<br />
<br />
Here is my page:<br />
<!-- m --><a class="postlink" href="http://www.home.earthlink.net/~svoltmer/">http://www.home.earthlink.net/~svoltmer/</a><!-- m --><br />
<br />
It is the links to the left with the home link being the nested one.<!--content-->What's in a name?<br />
<br />
<DIV class=float><A class=float href=http://www.htmlforums.com/archive/index.php/"http://www.crossroaddesigns.com">HOME</A></DIV><br />
<br />
See......<br />
never use the same name or ID on one page or site.<br />
<br />
<br />
<br />
:rocker:<br />
////edit<br />
btw<br />
<BODY leftMargin=0 topMargin=0 marginheight="0" marginwidth="0"><br />
in your logonav.html there is no bgcolor, so i see a gray bgcolor in IE<!--content-->Thanks, but that didn't seem to help.<!--content-->See......<br />
never use the same name or ID on one page or site.<br />
Peter, a class can be used as many times as you want on a page, or on a site. That's the point of a class. It can even be used on different types of elements on the same page. Using the same class on a "div" and on an "a" is perfectly legal. As for ids, an id can be used multiple times in a site, but not on a page. Each page in a site can have a div with the id of "pageHeader", but that id can only occur once on each page.<br />
<br />
svoltmeter, the site looks good to me. Are you still having a problem?<!--content-->Yea, the thumbnails on the "portfolio" link are supposed to line up in horizontal rows using "float:left", but in Netscape 7 they are one per line-all vertical. I have a problem using a "div class" within a "div class". Netscape only uses the first class to format the div info. The "home" link has the same problem using a div class and an "a" tag nested within produces two different results (IE and NS7). Thanks for any help you can give me.<br />
<br />
<!-- m --><a class="postlink" href="http://www.home.earthlink.net/~svoltmer/">http://www.home.earthlink.net/~svoltmer/</a><!-- m --><!--content-->Originally posted by doogxela <br />
Peter, a class can be used as many times as you want on a page, or on a site. That's the point of a class. It can even be used on different types of elements on the same page. ......... <br />
<br />
Ok, in the body<br />
but not twice the same name in the style in the head.<br />
<br />
:rocker:<!--content-->And float is a reserved word.<br />
more info: <!-- m --><a class="postlink" href="http://www.bigbaer.com/css_tutorials/css.float.html.tutorial.htm">http://www.bigbaer.com/css_tutorials/cs ... torial.htm</a><!-- m --><br />
<br />
So<br />
DIV.float {<br />
FLOAT: left; MARGIN: 10px 5%<br />
has to be<br />
DIV.float-menu {<br />
FLOAT: left; MARGIN: 10px 5%<br />
<br />
and i think spacer is also reserved.<br />
<br />
>> :rocker: <<<!--content-->
 
Back
Top