Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting HTNL to CSS?

Status
Not open for further replies.

Happy100

Technical User
Jun 25, 2004
102
GB
Hi

Please can any one tell me or point me in the right direction, to what the css equivalent is for this html code =

<table border="0" cellspacing="4" cellpadding="4" align="center" bgcolor="#990000" bordercolor="#990000">
<tr bordercolor="#990000" bgcolor="#FFFF66" nowrap>
<th nowrap>

Many thanks

Happy.
 
Code:
<style type="text/css">
 table {
   background-color: #990000;
   border: none; /* it is 0px wide, otherwise 0px solid #990000; */
   margin: 0 auto; /* for align="center" */
   border-collapse: collapse;
 }

 tr {
   background-color: #ffff66;
 }

 th, td {
   white-space: nowrap;
   padding: 4px;
 }
</style>

<table cellspacing="4">
 <tr>
  <th></th>
 </tr>
 <tr>
  <td></td>
 </tr>
</table>
[code]
There is no working setting for cellspacing in css. There is border-spacing, but it is not supported in browsers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top