murfitUK Posted October 4, 2008 Share Posted October 4, 2008 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 More sharing options...
Ingolme Posted October 4, 2008 Share Posted October 4, 2008 Give it a cols attribute. The CSS will override it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.