View Full Version : Changing the Default HR Picture with CSS. How?
How can I change the default <HR> picture using CSS. Is it even possible? Thanks for the help in advance!:thumbsup:
NEVER mind! I figured it out. Should've thought harder b4 I posted!
Nightfire
03-05-2003, 02:28 AM
What's a <hr> picture?
<hr style="color:#ff0000;width:200px"> etc
Yeah, but I wanted to change all the HR's on my page to a certain height and have them all be a certain image, not just a color or anything.
Eddyd84
03-05-2003, 08:55 PM
So, if you want an image just put an image tag wherever you would put an <hr>. For example,
<img src="some_line.gif" alt="---" width="#" height="#" border="#" />
You can change the width and height from the inside image tag.
I hope this helps.
:D
dreamingdigital
03-07-2003, 04:29 AM
<style type="text/css">
.line_orange {
width: 80%;
height: 1px;
border-style: solid;
border-color: orange;
}
.line_green {
width: 80%;
height: 1px;
border-style: solid;
border-color: green;
}
</style>
<hr class="line_orange">
<hr class="line_green">
brothercake
03-07-2003, 11:20 AM
Originally posted by Eddyd84
So, if you want an image just put an image tag wherever you would put an <hr>.
The problem with that is - what if someone doesn't view images? There's nothing to indicate the line break. Whereas if you use CSS it degrades back to a normal <hr/>, which can still be represented. Check out
http://diveintoaccessibility.org/day_25_using_real_horizontal_rules_or_faking_them_properly.html (i had to not parse this URL because it was being improperly generated)
Eddyd84
03-07-2003, 11:32 AM
Thanks for the link. I knew I saw that somewhere. :p
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.