Hi everyone…
I am a total newbie to programming. I am really struggling with aligning these tables. This is a gallery thumb page. I really want to position the tables with my background image. But I am not able to use ‘margin-left’ , the only thing that works is ‘width’ . I really want to move the thumbnail block down (I cannot move the block down at all…) and also to the right without increasing the space between the thumbnails. Is that possible?
Hope I don’t sound like an idiot…
I get a decent view in Firefox but IE really changes the margin… please check the attached pic also…
Here is my CSS …
<style type="text/css">
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {margin:0; padding:0; border:0; outline:0; font-size:100%; vertical-align:baseline; background:transparent;} body {line-height: 1;}ol, ul{list-style:none;} blockquote, q{quotes:none;} blockquote:before, blockquote:after, q:before, q:after{content:'';content:none;} :focus{outline:0;} ins{text-decoration:none;} del{text-decoration:line-through;} table{border-collapse:collapse; border-spacing:0;}
a, input {
outline-color: invert;
outline-style: none;
outline-width: medium;
}
body
{
background-repeat: no-repeat;
background-color:#000000;
}
a {
text-decoration: none;
color: #ff0000;
}
a:visited {
color: #ff0000;
text-decoration: none;
}
a:hover {
text-decoration: none;
color: #ffffff;
}
a:active {
text-decoration: none;
color: #ff0000;
}
p {
font-size: 20px;
margin-top: 10px;
}
p.caption {
font-size: 20px;
color: #ff0000;
margin-top: 10px;
}
.navlinks{
font-size: 20px;
color: #ff0000;
padding-left: 5px;
}
.prevnext{
font-size: 20px;
line-height: 25px;
padding-left: 595px;
}
p.excerpt{
font-size: 18px;
color: #ffffff;
width: 750px;
border-top-style: solid;
border-top-color: #2C2C2C;
background-color:#0F0F0F;
border-top-width: 1px;
margin-top: 1px;
}
.categoryview{
margin-top: 95px;
margin-left: 35px;
width: 680px;
}
.thumbs{
width: 240px;
height: 200px;
}
</style>
And HTML is
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Photography</title>
</head>
<body>
<table border='0' style='margin: 0px ; padding: 0px ;'>
<tr>
<td>
<span class='navlinks'><a href=viewgallery.php>Albums</a></span><font color=#ff0000> >> </font>
<span class='navlinks'><a href=viewgallery.php?cid=1>Abstract</a></span><br><br/><br/><br/></td>
</tr>
<td class=thumbs ><a href='viewgallery.php?cid=1&pid=240'><center/><img
src='photos/tb_240.jpg' border='0' alt='End Of Day' class='img'/></a></td>
<td class=thumbs ><a href='viewgallery.php?cid=1&pid=239'><center/><img
src='photos/tb_239.jpg' border='0' alt='A Photographer's Dream' class='img'/></a></td>
<td class=thumbs ><a href='viewgallery.php?cid=1&pid=238'><center/><img
src='photos/tb_238.jpg' border='0' alt='Heaven's View' class='img'/></a></td>
<td class=thumbs ><a href='viewgallery.php?cid=1&pid=237'><center/><img
src='photos/tb_237.jpg' border='0' alt='Colorful World ' class='img'/></a></td>
</tr>
<tr class=thumbs>
<td class=thumbs ><a href='viewgallery.php?cid=1&pid=241'><center/><img
src='photos/tb_241.jpg' border='0' alt='' class='img'/></a></td>
<td class=thumbs ><a href='viewgallery.php?cid=1&pid=242'><center/><img
src='photos/tb_242.jpg' border='0' alt='' class='img'/></a></td>
<td class=thumbs ><a href='viewgallery.php?cid=1&pid=243'><center/><img
src='photos/tb_243.jpg' border='0' alt='' class='img'/></a></td>
<td class=thumbs ><a href='viewgallery.php?cid=1&pid=244'><center/><img
src='photos/tb_244.jpg' border='0' alt='' class='img'/></a></td>
</tr>
<tr class=thumbs>
<td class=thumbs ><a href='viewgallery.php?cid=1&pid=245'><center/><img
src='photos/tb_245.jpg' border='0' alt='' class='img'/></a></td>
<td class=thumbs ><a href='viewgallery.php?cid=1&pid=246'><center/><img
src='photos/tb_246.jpg' border='0' alt='' class='img'/></a></td>
</table>
</body>