This is a discussion on "Can't stop link from inheriting traits" within the Web Page Design section. This forum, and the thread "Can't stop link from inheriting traits are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Can't stop link from inheriting traits
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
Can't stop link from inheriting traits
My navigation is contained in a div with the id #nav. I stylize the links like so:
You can view the full page here.
__________________
echo "Take it easy, ".$CloudedVision; .links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; } <quote>"I think it's wrong that only one company makes the game Monopoly" - <name>Steven Wright</name></quote>
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
Last edited by CloudedVision; May 10th, 2008 at 18:30. |
|
|
|
||||
|
Re: Can't stop link from inheriting traits
it'd be #otherroad a:link, #otherroad a:visited etc.
To get rid of borders around image links i just stick this ner the top of my css file to remove all:
Last Blog Entry: Fobriwap! (Mar 10th, 2008)
|
|
||||
|
Re: Can't stop link from inheriting traits
its not the image border links I'm worried about, I've already taken care of that. It's that #otherroad seems to be overridden by #nav, even though it should be exactly the opposit way around.
__________________
echo "Take it easy, ".$CloudedVision; .links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; } <quote>"I think it's wrong that only one company makes the game Monopoly" - <name>Steven Wright</name></quote>
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
|
|
||||
|
Re: Can't stop link from inheriting traits
fixed it using !important. still don't know why it inherited styles like that.....
__________________
echo "Take it easy, ".$CloudedVision; .links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; } <quote>"I think it's wrong that only one company makes the game Monopoly" - <name>Steven Wright</name></quote>
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
|
|
||||
|
Re: Can't stop link from inheriting traits
Sorry, must have misundertood you
Last Blog Entry: Fobriwap! (Mar 10th, 2008)
|
|
||||
|
Re: Can't stop link from inheriting traits
#nav li a img {} or something like #nav li#foo a {} whatever, you just need to correctly target it.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Music on/Off (does not stop in IE7) Need Help! | Webill | JavaScript Forum | 2 | May 11th, 2008 11:27 |
| Go to Stop issue | acrikey | Flash & Multimedia Forum | 1 | Dec 1st, 2007 23:48 |
| How do I stop it scrolling to the top? | marksk | Web Page Design | 2 | Jul 26th, 2007 20:32 |
| Stop Cyberbullying | pa007 | Webforumz Cafe | 11 | Apr 3rd, 2007 04:47 |
| How to Stop Robots | Gee Bee | Web Page Design | 4 | Jan 26th, 2006 18:56 |