HR lines

  the kopite 23:13 09 Jul 07
Locked

Hi Guys I put HR lines on a web page the code I used is hr color="#330099" size="4" width="480"> Yet WC3 says there is no color code and will not validate? Any idea what is wrong with my code please Thanks Kopite

  Eric10 11:01 10 Jul 07

Set a CSS style for your Horizontal Rule. e.g. <hr style="height: 4px; color: #330099; width: 480px;">

  Eric10 22:26 10 Jul 07

The above style works in IE but if you want cross browser support then you need a fuller style:

<hr style="width:480px; height: 4px; background-color: #330099; color: #330099; border: 0">

This has been tested in IE, Firefox and Opera and it also validates to W3C.

This thread is now locked and can not be replied to.

Sony Xperia XZ Premium review: Hands-on with the new 4K HDR phone with Motion Eye camera and Snapdr5…

1995-2015: How technology has changed the world in 20 years

Best laptop for design and art 2017: we test Apple, Dell, HP, Lenovo and Microsoft's best models…

CarPlay tips & troubleshooting guide: CarPlay tips & troubleshooting guide: Get the most from…