Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Htperlink border colours

Reply
Thread Tools

Htperlink border colours

 
 
Jim S
Guest
Posts: n/a
 
      05-06-2008
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
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      05-06-2008
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; }
?

> 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; }

> 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
 
 
 
 
Jim S
Guest
Posts: n/a
 
      05-06-2008
On Tue, 6 May 2008 15:28:19 +0300, Jukka K. Korpela wrote:

> 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.

>> 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; }
>
>> 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
 
still just me
Guest
Posts: n/a
 
      05-08-2008
On Tue, 6 May 2008 15:28:19 +0300, "Jukka K. Korpela"
<> wrote:

>> 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?


Heavens no! How dare he employ non-standard links colors! I'm amazed
that users on the Internet can even survive with non-standard colors!
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
printer colours vs 'real' colours dido22 Digital Photography 4 06-15-2007 03:37 PM
Drop Down List Border Width vs Text Box Border Width Coder ASP .Net 1 06-24-2006 01:27 PM
row bottom border in inner table not matching up with row border in outer table phl HTML 1 06-08-2006 03:43 PM
Datagrid Border showing when I say no border tshad ASP .Net 0 01-31-2005 05:40 PM
Strange table border colours Bonnett HTML 4 11-24-2004 07:37 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57