Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





Pages (2): [1] 2 »   Last Thread  Next Thread
Author
Thread Post New Thread   

<A> tag color inheritance in IE
 

Rip




quote this post edit post

IP Loged report this post

Old Post  09-17-05 - 09:27 AM  
Hello, is there a way to get around a following problem in IE:

I have a layout made up of several div containers, each defining a
separate font color. I would like the links to follow the color scheme
of each div, but to change to a particular color when hovered - without
(re)defining a for each div. If I do:

a, a:link, a:visited, a:active {
color: inherit;
font: inherit;
text-decoration: none;
}
a:hover {
color: #ffcc33;
}

#menu {
font-size: 11px;
font-weight: bold;
color: #dcddde;
}

#content {
font-size: 12px;
font-weight: normal;
color: #cfcfcf;
}


html:

<div id="menu>
<a href="http://www.google.com">Link in menu</a>
</div>
<div id="content">
<a href="http://www.yahoo.com">Link in body</a>
</div>


FF renders colors correctly (inherits from a div), but IE shows links
in default (blue) color. IE is in strict mode.

Thanks,

Rip



Post Follow-Up to this message ]
Re: <A> tag color inheritance in IE
 

Barbara de Zoete




quote this post edit post

IP Loged report this post

Old Post  09-17-05 - 09:27 AM  
On Sat, 17 Sep 2005 09:17:34 +0200, Rip <ripkrizbi@XXXXXXXXXX> wrote:

> Hello, is there a way to get around a following problem in IE:
>
> a, a:link, a:visited, a:active {
> a:hover {
>
> #menu {
>
> #content {
>
>
> FF renders colors correctly (inherits from a div), but IE shows links
> in default (blue) color. IE is in strict mode.
>

Change the order of the selectors in your stylesheet to
#menu {}
#conten{}
a, a:link, a:visited, a:active {}
a:hover {}

So there is something to inherit.

Might work, changing the cascade. Not tested.


-- =

,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.=

|      weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |=

|  webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |=

|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html    |=

`-------------------------------------------------- --<--@ ------------'=


Post Follow-Up to this message ]
Re: <A> tag color inheritance in IE
 

Rip




quote this post edit post

IP Loged report this post

Old Post  09-17-05 - 09:27 AM  
Hi Barbara,

order did not solve it :( links are still blue in IE...



Post Follow-Up to this message ]
Re: <A> tag color inheritance in IE
 

Els




quote this post edit post

IP Loged report this post

Old Post  09-18-05 - 04:26 AM  
Beauregard T. Shagnasty wrote:

> Rip wrote: 
>
> Your order is out of order. Should be:
>
> a {}
> a:link {}
> a:visited {}

a:focus {}

> a:hover {}
> a:active {}
>
> "Las Vegas Has Animals"

"Las Vegas Forest Has Animals"

(no, that's not a good one, just trying to do a variety on your
version ;-) )

> http://www.safalra.com/special/googlegroupsreply/

Ditto.

--
Els                     http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -


Post Follow-Up to this message ]
Re: <A> tag color inheritance in IE
 

Beauregard T. Shagnasty




quote this post edit post

IP Loged report this post

Old Post  09-18-05 - 04:26 AM  
Els wrote:
> a:focus {}
>
> "Las Vegas Forest Has Animals"

Ah, the elusive focus. <g>  I use it with my stylesheets, but most
people overlook it. (Even me, in the last post.)

--
-bts
-This space intentionally left blank.


Post Follow-Up to this message ]
Re: <A> tag color inheritance in IE
 

Beauregard T. Shagnasty




quote this post edit post

IP Loged report this post

Old Post  09-18-05 - 04:26 AM  
Rip wrote:
> Hi Barbara,
>
> order did not solve it :( links are still blue in IE...

Your order is out of order. Should be:

a {}
a:link {}
a:visited {}
a:hover {}
a:active {}

"Las Vegas Has Animals"


http://www.safalra.com/special/googlegroupsreply/

--
-bts
-This space intentionally left blank.


Post Follow-Up to this message ]
Re: <A> tag color inheritance in IE
 

'sNiek




quote this post edit post

IP Loged report this post

Old Post  09-18-05 - 04:26 AM  
Beauregard T. Shagnasty schreef:
> Els wrote:
> 
>
>
> Ah, the elusive focus. <g>  I use it with my stylesheets, but most
> people overlook it. (Even me, in the last post.)
>

It's truly a shame IE doesn't support it.


--
Niek


Post Follow-Up to this message ]
Re: <A> tag color inheritance in IE
 

Els




quote this post edit post

IP Loged report this post

Old Post  09-18-05 - 04:26 AM  
'sNiek wrote:

> Beauregard T. Shagnasty schreef: 
>
> It's truly a shame IE doesn't support it.

Oh, really?
http://inspirebc.org.uk/
Tab your way through the links in IE and see what happens.
Even IE5 does it.

--
Els                     http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -


Post Follow-Up to this message ]
Re: <A> tag color inheritance in IE
 

kchayka




quote this post edit post

IP Loged report this post

Old Post  09-19-05 - 12:32 AM  
Els wrote:

> 'sNiek wrote:
> 
>
> http://inspirebc.org.uk/
> Tab your way through the links in IE and see what happens.

No WinIE version supports :focus. In this case, it's picking up the
:active pseudo class rather than :focus.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.


Post Follow-Up to this message ]
Re: <A> tag color inheritance in IE
 

Els




quote this post edit post

IP Loged report this post

Old Post  09-19-05 - 12:32 AM  
kchayka wrote:

> Els wrote:
> 
>
> No WinIE version supports :focus. In this case, it's picking up the
>:active pseudo class rather than :focus.

You're right - just never discovered that 'cause I always use them
both. Thanks for the correction.

--
Els                     http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -


Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 06:35 AM. Post New Thread   
Pages (2): [1] 2 »   Previous Last Thread   Next Thread next
Stylesheets archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top