View Full Version : Why won't the border appear?


YellowYoshi
05-29-2003, 03:03 AM
For some reason a border won't appear. Here's my code:

<table width="100%"><td>

<tr onmouseover="this.style.backgroundColor='#006600';"

onmouseout="this.style.backgroundColor='#000000'" bgcolor="#000000" border="2"

style="border-color: #0000ff #0033ff;">

I tried everything! I tried adding the border to the td, or table tags instead, didn't work. Please help!

phrozein
05-29-2003, 04:03 AM
Try just putting the border="1" inside the <table>.

MaGiCSuN
05-29-2003, 03:13 PM
you can't have two colours for the borders like you have filled in. You can only use one colour so try this:

<table width="100%"><td>
<tr onmouseover="this.style. backgroundColor='#006600'
;" onmouseout="this.style. backgroundColor='#000000'" bgcolor="#000000" style="border: 2 solid #0000ff;">

i took out #0033ff and the border=2 part because i added that all in once to the style="blah" part.

If you want the whole table to have a border just simply ad this:

style="border: 1 solid #0033ff"

to the <table> code. Also make sure you close the table ;)

Love,
Mirna