This is a discussion on "color: inherit; issue with IE 7" within the Web Page Design section. This forum, and the thread "color: inherit; issue with IE 7 are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
color: inherit; issue with IE 7
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
color: inherit; issue with IE 7
hi
I am working on a site and I am trying to specify the colours of text links based on a particular class. The main body has a colour to define text and i also have this (cut down version)
The colour properly gets inherited in firefox, but in IE it colours it using the colour of the main body text. I can specify the colour for IE by adding color: [what colour I want]; to .panelText a, but this then appies to to all of the panels. I have also tried defining the a tag for each panel but that doesnt work either. Any ideas? |
|
|
|
#2
|
|||
|
|||
|
Re: color: inherit; issue with IE 7
Anyone?
I have read that IE has issues with inheritance, but I cant find a solution... |
|
#3
|
|||
|
|||
|
Re: color: inherit; issue with IE 7
Would this link be helpful?
Did you try adding different classes to the different links? There is an example above. I used this last week and it worked for me. |
|
#4
|
|||
|
|||
|
Re: color: inherit; issue with IE 7
Thanks for the reply. I already have separate class for the different links.
There is away round, setting the a attribute in a separate class for each item, but as I have dozens of classes, I was hoping there might be a cleaner way of doing it. After all, it works fine on firefox. Looks like I'll just have to have loads of code that shouldn't be needed. By that I mean .panel001{ background-image:url(../images/panels/001.gif); height: 103px; width: 361px; color:#FFFFFF; } .panel001 a{ color:#FFFFFF; } (I have 12 of these so far, and probably more so it seems like a lot of extra code) |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| background color in xml | kool77 | Other Programming Languages | 2 | Jul 7th, 2007 15:30 |
| CSS noob - Help with border color browser issue please!!! | Micky-D | Web Page Design | 4 | Oct 14th, 2006 19:58 |
| link color | somsahi | Web Page Design | 3 | Aug 25th, 2006 17:02 |
| why h1 doesn't inherit font -size from body? | sahota | Web Page Design | 3 | Dec 12th, 2005 20:55 |
| css validating - color issue | ivyholly | Web Page Design | 13 | Dec 6th, 2005 16:05 |