W3C home > Mailing lists > Public > www-validator@w3.org > December 2006

Re: Border Colour Code in 4.01

From: Rui del-Negro <w3validator@dvd-hq.info>
Date: Fri, 15 Dec 2006 14:58:50 -0000
To: "Pete Clowes" <pete@internetbusinessdirectory.co.uk>
Cc: www-validator@w3.org
Message-ID: <op.tklvwcxsjf0k3w@bigbang>

> <table align="left" border="1" bordercolor="maroon" cellpadding="0"  
> cellspacing="0" width="780">
> Currently the above page does not show this in order to remain valid  
> html 4.01, but it works fine with the code added to give the maroon  
> border colour I want.
> Can you please advise how I can have my maroon border and still be valid  
> 4.01 code.

Simple, put all "presentational" stuff in CSS.
For example:

<table style="text-align:left; border:1px solid maroon; padding:0px;  
border-spacing:0px; width:780px;">

Or, even better, create a CSS class for your table (inside the head  
element) and just assign it:

<table class="mystyle">

Received on Friday, 15 December 2006 14:59:23 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:50 UTC