2 replies [Last post]
Anonymous
Anonymous's picture
Guru
calgary,alberta
calgary,alberta

Hi,
The following CSS style

IMG.stylename { border: 1pt solid blue; }

is working fine in IE but not in Netscape 4.6. Is there any work around?

Thanks & Rgds
Jayakarthikeyan.S

insin
insin's picture
Offline
Enthusiast
Belfast, NI
Last seen: 20 years 4 weeks ago
Belfast, NI
Joined: 2003-05-07
Posts: 57
Points: 0

Image Border Color

It's probably not very good practice to use points as a unit of measurement for borders and other non-text elements. Points are a print unit, so their use is fairly redundant on the web anyway, but thet's an issue for another day Wink

Try replacing the "1pt" bit with a unit of measurement such as pixels (e.g. 3px) or ems (e.g. 0.2em) and see how you go:

IMG.stylename { border: 3px solid blue; }
IMG.stylename { border: 0.2em solid blue; }

A Pedant Writes...
Into the mountain,
I will fall.

Anonymous
Anonymous's picture
Guru

Image Border Color

Hello insin,
In Netscape Border is appearing at the bottom of the image as rectangular box.
Code is as follow:

<style type="text/css">
IMG.stylename { border: 0.2em solid black; }
</style>

<img class="stylename" src="../CourseManagement/Generating_and_Printing_Documents/Manually_Generating_and_Printing_Documents/images/6_1_4.1.jpg" border="1" usemap="#FormMap" />

<map name="FormMap">
<area shape="rect" coords="335,31,366,59" onmouseover="return escape(strContent[0]);" href="#" />
</map>