Link to home
Start Free TrialLog in
Avatar of Evan Cutler
Evan CutlerFlag for United States of America

asked on

remove spacing between table cells

I have a html table with parameters set by css.

although I have border-style: none,
I still have spaces between my td's...

any ideas?
html:
<tr>
     <td class="murals"></td>
</tr>
<tr>
     <td class="themes"></td>		
</tr>
<tr>
     <td class="accents"></td>
</tr>
<tr>
     <td class="painting"></td>
</tr>
<tr>
     <td class="consult"></td>		
</tr>
 
css:
td.murals
{
	height: 51px;
	width: 246px;
	background-image: url("../images/murals1.gif");
	border-style: none;
}
 
td.murals:hover
{
	background-image: url("../images/murals2.gif");
}
 
td.themes
{
	height: 51px;
	width: 246px;
	background-image: url("../images/themes1.gif");
	border-style: none;
}
 
td.themes:hover
{
	background-image: url("../images/themes2.gif");
}
 
td.accents
{
	height: 51px;
	width: 246px;
	background-image: url("../images/accents1.gif");
	border-style: none;
}
 
td.accents:hover
{
	background-image: url("../images/accents2.gif");
}
 
td.painting
{
	height: 51px;
	width: 246px;
	background-image: url("../images/painting1.gif");
	border-style: none;
}
 
td.painting:hover
{
	background-image: url("../images/painting2.gif");
}
 
td.consult
{
	height: 51px;
	width: 246px;
	background-image: url("../images/consult1.gif");
	border-style: none;
}
 
td.consult:hover
{
	background-image: url("../images/consult2.gif");
}

Open in new window

Avatar of Lordgobbledegook
Lordgobbledegook

border-style is just the type of border - such as solid or dashed.

You need to look at the margin and padding settings.  Such as:

margin: 0px;
padding: 0px;
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Evan Cutler

ASKER

Thanks.  That did it.