PDA

View Full Version : hr & border question



sonic
March 2nd, 2003, 12:57
"hr color=blue" is not a standard in html4.0, only IE show its blue hr.
And border color also apply to IE only, how can i show those color change in netscape & other browsers?

dsgdevil
March 2nd, 2003, 13:10
i noticed that too.Other browsers won't show border colors.What i did was not to use border colors and to use something like
<table border=0 bgcolor=blue cellspacing=1 cellpadding=0><tr><td bgcolor=black>
to make a blue border

kabatak
March 2nd, 2003, 13:31
<html>
<head>
<STYLE>
HR { height:5px; width:90%; background:#0000FF;}
</STYLE>
</head>
<body>
<hr>
</body>
</html>

EpidemiK
March 2nd, 2003, 13:43
Why don't you just make an image instead?

sonic
March 3rd, 2003, 19:59
image hr need time to load, may have delay:)
kabatak, then css can solve this

EpidemiK
March 3rd, 2003, 20:05
Originally posted by sonic
image hr need time to load, may have delay:)
kabatak, then css can solve this

If you just make it like 4 x 1 pixel then stretch the width to 100%, it will only occupy about 100 bytes of space .. this should load under one second for even a 9400 bps modem user ..

merickson
March 4th, 2003, 20:41
I don't think that an <IMG> tag will take a percentage width.
Also, you could do it with a 1px X 1px original image. Just specify both the height and width.

EpidemiK
March 4th, 2003, 21:06
Originally posted by merickson
I don't think that an <IMG> tag will take a percentage width.
Also, you could do it with a 1px X 1px original image. Just specify both the height and width.

Yes it does .. I've done it countless times.

keith
March 5th, 2003, 15:58
with a 1x1 gif of your color of choice:
<img src="hr.gif" width="100%" height="2" hspace="3" vspace="6"><br>

hspace ="3" vspace="6" would be the space normally above, below, and to the sides the horizontal tag.