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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top