HighDots Forums  

IE 6 PC, how to change border color on linked image?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss IE 6 PC, how to change border color on linked image? in the Macromedia Dreamweaver forum.



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

Default IE 6 PC, how to change border color on linked image? - 07-28-2004 , 05:11 PM






Hi,

How do you change the border color on an image with a link in IE PC
using CSS?

Changing the color of the <a> text doesn't work for some reason.
Changing the border property of the image doesn't work either (the right
border gets cut off).

Misha

Reply With Quote
  #2  
Old   
Misha
 
Posts: n/a

Default Re: IE 6 PC, how to change border color on linked image? - 07-28-2004 , 05:20 PM






Perhaps I shoudl specify:

I have an image in a photogallery. I want the image to have a black
border around it. On mouse over I want the border to change to white.

However, there is text on the same <a> as the image, separated with a
</br>. I would like the text color to change when I hover over the
image, and the image to change when I hover over the text.


Misha


Misha wrote:

Quote:
Hi,

How do you change the border color on an image with a link in IE PC
using CSS?

Changing the color of the <a> text doesn't work for some reason.
Changing the border property of the image doesn't work either (the right
border gets cut off).

Misha

Reply With Quote
  #3  
Old   
Josh Johnson
 
Posts: n/a

Default Re: IE 6 PC, how to change border color on linked image? - 07-28-2004 , 05:21 PM



a img {border: 1px solid red;}

Is that what you're looking for?

- Josh

Misha wrote:
Quote:
Hi,

How do you change the border color on an image with a link in IE PC
using CSS?

Changing the color of the <a> text doesn't work for some reason.
Changing the border property of the image doesn't work either (the right
border gets cut off).

Misha

Reply With Quote
  #4  
Old   
Josh Johnson
 
Posts: n/a

Default Re: IE 6 PC, how to change border color on linked image? - 07-28-2004 , 05:24 PM



Then make it:

a:link, a:visited {color: black;}
a:hover, a:active {color: red;}
a img {border: 1px solid black;}
a:hover img {border-color: white;}

- Josh

Misha wrote:

Quote:
Perhaps I shoudl specify:

I have an image in a photogallery. I want the image to have a black
border around it. On mouse over I want the border to change to white.

However, there is text on the same <a> as the image, separated with a
/br>. I would like the text color to change when I hover over the
image, and the image to change when I hover over the text.


Misha


Misha wrote:

Hi,

How do you change the border color on an image with a link in IE PC
using CSS?

Changing the color of the <a> text doesn't work for some reason.
Changing the border property of the image doesn't work either (the
right border gets cut off).

Misha

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 - 2009, Jelsoft Enterprises Ltd.