Jump to content

Validating textarea without cols attribute


murfitUK

Recommended Posts

What's the best way to validate the markup of a xhtml 1.0 transitional page that contains a textarea element with no cols element? I have

<textarea name="message" style="width: 100%;">some text</textarea>

as I want it to take up the whole of the width of the screen but this is not valid code. Putting the style into a separate css stylesheet doesn't work either as the validator still expects cols.Ignoring the error is my preferred option (!) but just wondered if there is a solution.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...