Hi everyone! I hope that you guys can help me. I have created an image gallery with four images and instead of lining up in a row they seem to line up in two and twos, like a table of two rows and two columns. I have looked at other questions regarding this topic and I seem to be doing everything suggested but still not luck.
Here is the HTML code:
<div class="img">
<a target="_blank" href="index.html"><img src="../images/jewelry photos/180 by 180/littlejewelry.jpg" alt="Klematis" width="180" height="180" /></a>
<div class="desc">Add a description of the image here</div>
</div>
<div class="img">
<a target="_blank" href="index.html"><img src="../images/jewelry photos/180 by 180/littlejewelry.jpg" alt="Klematis" width="180" height="180" /></a>
<div class="desc">Add a description of the image here</div>
</div>
<div class="img">
<a target="_blank" href="index.html"><img src="../images/jewelry photos/180 by 180/littlejewelry.jpg" alt="Klematis" width="180" height="180" /></a>
<div class="desc">Add a description of the image here</div>
</div>
<div class="img">
<a target="_blank" href="index.html"><img src="../images/jewelry photos/180 by 180/littlejewelry.jpg" alt="Klematis" width="180" height="180" /></a>
<div class="desc">Add a description of the image here</div>
</div>
Now for the CSS code:
div.img
{
margin: 1px;
border: 1px solid #FFF;
height: auto;
width: auto;
float: left;
text-align: center;
top:450px;
position:relative;
right:400px;
}
div.img img
{
display:inline;
margin: 4px;
border: 2px solid #ffffff;
}
div.img a:hover img {border: 1px solid #F03;}
div.desc
{
text-align: center;
font-weight: normal;
width: 220px;
margin: 1px;
}
I cannot seem to post a preview as this site has not launched yet and not connected to the web and working in dreamweaver mode. But when you look at the page, the images do not line up straight but go in twos and twos even though there seems to be enough space. Am I missing something? Any help would be appreciated!
Jenya.