not valid xhtml?

Soldato
Joined
2 Nov 2002
Posts
3,304
Location
Aberdeen
my code is

Code:
<td class="one" rowspan="2" height="485" width="15">1</td>
and for some reason it's not coming up as valid xhtml.. any ideas?

I'm being told, the height and width isn't valid?
 
Last edited:
Which XHTML standard are you validating against? Transitional or Strict?

For Strict you'll have to do that in CSS (as it should be).
 
i've created

<!--

.one {background-color: #4b3c1c;
height: 485;
width:15
}

-->

Which works fine in ie6 but not in firefox?. grrr.
 
Last edited:
Just to reiterate and fix the code for you (assuming your measurements are in pixels):

Code:
.one {
  background-color: #4b3c1c;
  height: 485px;
  width: 15px;
}
Although those do seem to be some rather strange dimensions for a table cell – I hope you're going to be using this table for tabular data ;)

*av
 
Back
Top Bottom