![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm trying to tidy up my site. http://www.celticguitartalk.com/assets/index.html At the moment, my CSS navigation has the following class declaration for my sub-buttons: p.navsubs {font-size: 12px;} .navsubs a { background-image: url(../nav/navsub.jpg); font-size: 90%; } .navsubs a:hover, .navsubs a:active { color: #FFFFFF; background-image: none; } This is reflected in my HTML template as: div class="hideit" id="sub2" p class="navsubs" p class="navsubs" p class="navsubs" ...etc for each button. /div I'm trying to cut down on needless repetition by removing the class="navsubs" part of <p class="navsubs"> and created this declaration in order to do so: div.hideit p {font-size: 12px} I then deleted all instances of class="navsubs", leaving just the <p tags. Of course, now the <a> tag has lost its navsubs attributes, so I tried to simply change the .navsubs a entries to .hideit a but it doesn't work. I also tried it with div.navsubs a but can't for the life of me get it to work. Can anyone advise me as to how to edit the CSS so that I can safely remove all the class="navsubs" entries? My CSS are here: http://celticguitartalk.com/CSS/cgtv4.css http://celticguitartalk.com/CSS/cgtv5.css Thanks. -- Cams, Luxembourg cams AT celticguitartalk DOT com |
#3
| |||
| |||
|
|
Assuming you need to keep the hideit class for other reasons, try this - div.hideit p {font-size: 12px;} div.hideit a { background-image: url(../nav/navsub.jpg); font-size: 90%; } div.hideit a:hover, div.hideit a:active { color: #FFFFFF; background-image: none; } ... div class="hideit" id="sub2" p p p ...etc for each button. /div |
#4
| |||
| |||
|
|
"Murray *TMM*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote in message news:c8i3p6$4j1$1 (AT) forums (DOT) macromedia.com... Assuming you need to keep the hideit class for other reasons, try this - div.hideit p {font-size: 12px;} div.hideit a { background-image: url(../nav/navsub.jpg); font-size: 90%; } div.hideit a:hover, div.hideit a:active { color: #FFFFFF; background-image: none; } ... div class="hideit" id="sub2" p p p ...etc for each button. /div Thanks for the reply Murray. That is indeed what I tried without success. I created my site by following the Project7 Foundations e-book, but, to be honest, I don't think it was in-depth enough for me to gain an understanding of exactly what I was doing. Perhaps I'll just forget about trying to remove the repetitious class="navsubs" entries as nothing I've tried works. Saying that, it would be a good exercise for me to gain a better knowledge of what I'm doing, only I've been at it for 2 hours now and made no progress; hence my question to the group. Thanks, Cams |
#5
| |||
| |||
|
|
Cams: Show me your most recent failed attempt, please. |
#6
| |||
| |||
|
|
I'm trying to tidy up my site. http://www.celticguitartalk.com/assets/index.html |
#7
| |||
| |||
|
|
I'm trying to tidy up my site. http://www.celticguitartalk.com/assets/index.html |
![]() |
| Thread Tools | |
| Display Modes | |
| |