But it affects spacing at the" /> But it affects spacing at the" /> But it affects spacing at the"/>

How to change cellspacing at top only?

2k views Asked by At

Blog: www.amedecrwanda.blogspot.com

On the homepage post I've set the table as: <table cellpadding="0" cellspacing="50">

But it affects spacing at the top too, pushing the table further down the page. Anyone got a fix for this - to keep spacing between columns the same, but remove the gap at the top?

3

There are 3 answers

0
Minar_Mnr On

Remove those lines:

<div class="post-header">
<div class="post-header-line-1"></div>
</div>
0
vishal kokate On

Make cellspacing zero for table. Add margin for for that particular table using CSS. In this way, you can control the way space (margin) from top.

<style>
table td{
margin:20px;
margin-top:0px;
}
</style>

<table cellspacing="">
...
</table>
0
Sifatur Rahman On

Replace this code <table cellpadding="0" cellspacing="50"> with <table cellpadding="0" cellspacing=""> and yes of course you should add the css styles advised by @vishal kokate