Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<HR> style 2

Status
Not open for further replies.

emozley

Technical User
Jan 14, 2003
769
0
0
GB
Is it possible to style a <hr> tag so it looks like a series of red full stops?

Thanks

Ed
 
Of course:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"<html xmlns=" lang="en-CA" xml:lang="EN-CA">

<head>
<title>Some title</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
hr {
border: 0;
background: url(image) #fff repeat-x 0 0;
height: 35px;
}
</style>
</head>

<body>
<hr>
</body>
</html>
 
Couldn't you add a border and make the styles "dotted" rather than use an image?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
I will go for the image approach - thanks very much indeed!

E.
 
OK, although I don't see why you would. I'd have thought it would be better to limit the use of images when CSS can do it for you e.g.
Code:
<hr style="width:100%;color:Red;border: 0;border-bottom:dotted;"/>


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
ah I see what you mean - much better!

Thanks very much

Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top