HighDots Forums  

Htperlink border colours

alt.html alt.html


Discuss Htperlink border colours in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jim S
 
Posts: n/a

Default Htperlink border colours - 05-06-2008 , 04:22 AM






Most of my site is pictures accessed by thumbnaisl with a ipx border.
My stylesheet contains the usual
a:link {color: white}
a:visited {color: #800080}
a:hover {color: red}
a:active {color: teal}
which works fine in Firefox,Opera & Safari (all windows)

However IE7 gives me an unchangable blue border.
I tried the ploy of using a:link:hover, but all that does is turn the
border in FF to blue with a white hover (
I thought IE7 had solved this one.
What I really want is a white frame with a red hover, the rest is a bonus.
--
Jim S
Tyneside UK
www.jimscott.co.uk

Reply With Quote
  #2  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: Htperlink border colours - 05-06-2008 , 07:28 AM






Scripsit Jim S:

Quote:
My stylesheet contains the usual
a:link {color: white}
a:visited {color: #800080}
a:hover {color: red}
a:active {color: teal}
That's not usual at all, but it is usual to make the elementary mistake
of not setting background when setting color. What happens on a browser
with a user style sheet
* { color: black; background: white; }
?

Quote:
However IE7 gives me an unchangable blue border.
That's because the border color is a property (the border-color
property) of the img element. IE has, conceptually, a browser style
sheet that sets specific border colors for images that are links. You
need to override that, e.g.

a:link img { border-color: white; }

Quote:
What I really want is a white frame with a red hover, the rest is a
bonus.
Is the user supposed to guess that in _this_ particular site, white
border means a link?

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/



Reply With Quote
  #3  
Old   
Jim S
 
Posts: n/a

Default Re: Htperlink border colours - 05-06-2008 , 08:32 AM



On Tue, 6 May 2008 15:28:19 +0300, Jukka K. Korpela wrote:

Quote:
Scripsit Jim S:

My stylesheet contains the usual
a:link {color: white}
a:visited {color: #800080}
a:hover {color: red}
a:active {color: teal}

That's not usual at all, but it is usual to make the elementary mistake
of not setting background when setting color. What happens on a browser
with a user style sheet
* { color: black; background: white; }
?

My backgrounds are all defined.

Quote:
However IE7 gives me an unchangable blue border.

That's because the border color is a property (the border-color
property) of the img element. IE has, conceptually, a browser style
sheet that sets specific border colors for images that are links. You
need to override that, e.g.

a:link img { border-color: white; }
That works - thanks, and so does
a:hover img { border-color: red; }
Quote:
What I really want is a white frame with a red hover, the rest is a
bonus.

Is the user supposed to guess that in _this_ particular site, white
border means a link?
There's a prompt on the homepage.


--
Jim S
Tyneside UK
www.jimscott.co.uk


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.