Whats wrong with this code?

  • Thread starter Thread starter Rob Eventine
  • Start date Start date
R

Rob Eventine

VS 2005 wont let me switch from source to design view bacause of the
following code
<hr align="center" width="40%" size="3" color="#3366FF"/>

it really does not like the color command.. can anyone tell me why and how
to correct it so my horizontal rules are nice and colourful..



thanksa lot in advance...
 
because the <hr> element doesn't have a color attribute that you can set.
All it has is align, noshade, size, and width, all of which have been
deprecated. If you want to set the color you have to do it using css.
 
Back
Top