Dears,
I am really having a problem with <td> leaving spaces around an image. I am css to style my tables. I have following very simple table.
Just to put in the picture, I did the following:
I made web layout in photoshop, the I sliced it. Next, I cleaned the html file from all none xhtml tags and used css.
My layout looks ugly now as there are big spaces between the slices. All what I need is to remove all these space so my layout look like a one nice intact layout.
I really hope that I made it clear.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"">
<html xmlns=" <head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Test Table Cell</title>
<link rel="stylesheet" href="/src/css/mz.css" type="text/css" />
</head>
<table id="main">
<tbody>
<tr>
<td><img src="src/images/layout_01.png" width="750" height="26" /></td>
</tr>
</tbody>
</table>
MY CSS IS:
body{
margin:0px;
font-size:medium;
font-family: verdana, arial, helvetica, sans-serif;
font: #330000;
}
table#main {
width:750px;
height:100%;
vertical-align: top;
border-collapse: collapse;
border-spacing: 0;
padding: 0%;
margin:auto;
}
div#main
{
text-align:center;
}
td.main
{
border-collapse: collapse;
border-spacing: 0;
margin:auto%;
padding:0%;
}
img
{
padding:110;
margin:auto;
border:220;
border-collapse:collapse;
}
I am really having a problem with <td> leaving spaces around an image. I am css to style my tables. I have following very simple table.
Just to put in the picture, I did the following:
I made web layout in photoshop, the I sliced it. Next, I cleaned the html file from all none xhtml tags and used css.
My layout looks ugly now as there are big spaces between the slices. All what I need is to remove all these space so my layout look like a one nice intact layout.
I really hope that I made it clear.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"">
<html xmlns=" <head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Test Table Cell</title>
<link rel="stylesheet" href="/src/css/mz.css" type="text/css" />
</head>
<table id="main">
<tbody>
<tr>
<td><img src="src/images/layout_01.png" width="750" height="26" /></td>
</tr>
</tbody>
</table>
MY CSS IS:
body{
margin:0px;
font-size:medium;
font-family: verdana, arial, helvetica, sans-serif;
font: #330000;
}
table#main {
width:750px;
height:100%;
vertical-align: top;
border-collapse: collapse;
border-spacing: 0;
padding: 0%;
margin:auto;
}
div#main
{
text-align:center;
}
td.main
{
border-collapse: collapse;
border-spacing: 0;
margin:auto%;
padding:0%;
}
img
{
padding:110;
margin:auto;
border:220;
border-collapse:collapse;
}