-1

Well I have the following HTML:

<table cellspacing="0" cellpadding="0" width="100%">

So I validated my HTML document and I found that these are obsolete. But if I remove them my website alignment won't work as I want. I need a good enough way to replace the attrbutes with CSS code.

Deduplicator
  • 44,692
  • 7
  • 66
  • 118
PowerUser
  • 812
  • 1
  • 11
  • 32

2 Answers2

0
    <style type="text/css">
        .table1_style
        {
            border-collapse: collapse;
            border-spacing: 0px;
        }
        .table2_style
        {
            width: 100%;
        }
    </style>

<table class="table1_style">
<tr>
<td>
</td>
</tr>
</table>
<table class="table2_style">
<tr>
<td>
</td>
</tr>
</table>
Louis van Tonder
  • 3,664
  • 3
  • 31
  • 62
0

You have to write in css this things:

border-collapse: collapse;
border-spacing: 0px;
width: 100%;
PaoloCargnin
  • 442
  • 2
  • 10