On Saturday, July 9, 2011 5:47:09 pm Aaron Gray wrote: > Why are <hr>'s white ? > > http://www.aarongray.org/CSS-Discuss/hr.html > > ~~~ hr.html ~~~ > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/strict.dtd"> > <html> > <head> > <style> > body, hr { > background-color: green; > color: lime; > } > </style> > </head> > <body> > > <hr> > > </body> > </html> > ~~~ >
Color changes the text color. HR's don't have text. It's counter intuitive, but HR's are a short empty box, with a border. so changing the background- color or the border-color properties will get you HRs in a different color. ---Tim ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
