HR lines

  the kopite 23:13 09 Jul 2007

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 2007

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

  Eric10 22:26 10 Jul 2007

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.

Elsewhere on IDG sites

Alienware 17 R4 2017 review

These brilliant Lego posters show just what children's imaginations are capable of

Mac power user tips and hidden tricks

Comment réinitialiser votre PC, ordinateur portable ou tablette Windows ?