KnoxVol
11-04-2007, 07:12 PM
Hello;
The code below seems to be doing exactly the way I want. The problem is I don't see how it could be working.
I am using a variation of the CSS code that I found at the W3Schools web site.
http://www.w3schools.com/css/css_image_gallery.asp
http://www.w3schools.com/css/tryit.asp?filename=trycss_image_gallery
I am trying to get three images below (flower1.gif, flower2.gif, flower3.gif) to line up vertically or stack on top of each other, which they are doing.
Then I am wanting to get the next three images (flower4.gif, flower5.gif, flower6.gif) to stack on top of each other and line up immediately to the right of the first three images, which they are also doing.
It looks like since the three images in each the img1 class and the img2 class are stacking on top of each other that the two groupings of images in the img1 and img2 div tags would also stack on top of each other. But they're not. They're lining horizontally just like I need them to.
The code seems to be working fine in both the FireFox and IE browsers.
You can copy the code below, save it as an Html file, then open it in a FireFox browser or IE browser and you can see what I'm talking about.
But I'm trying to get it clear for my own peace of mind that I've got the image configuration below designed properly and that I've not got the CSS code hacked up.
I would appreciate if anyone could tell me if the method below is proper or provide any input or suggestions about any better way of resolving my issue.
<html>
<head>
<style type="text/css">
div.img1
{
margin: 0px 0px 0px 0px;
border: 0px solid #A9A9A9;
float: left;
}
div.img2
{
margin: 0px 0px 0px 6px;
border: 0px solid #A9A9A9;
float: left;
}
</style>
</head>
<body>
<table>
<tr>
<td>col one</td>
<td>col two</td>
<td>
<div class="img1">
<div> <a href=""><img src="flower1.gif" width="110" height="90"></a></div>
<div> <a href=""><img src="flower2.gif" width="70" height="60"></a> </div>
<div> <a href=""><img src="flower3.gif" width="110" height="90"></a></div>
</div>
<div class="img2">
<div ><a href=""><img src="flower4.gif" width="110" height="90"></a></div>
<div><a href=""><img src="flower5.gif" width="110" height="90"></a></div>
<div><a href=""><img src="flower6.gif" width="110" height="90"></a></div>
</div>
</td>
</tr>
</table>
</body>
</html>
Thanks.
The code below seems to be doing exactly the way I want. The problem is I don't see how it could be working.
I am using a variation of the CSS code that I found at the W3Schools web site.
http://www.w3schools.com/css/css_image_gallery.asp
http://www.w3schools.com/css/tryit.asp?filename=trycss_image_gallery
I am trying to get three images below (flower1.gif, flower2.gif, flower3.gif) to line up vertically or stack on top of each other, which they are doing.
Then I am wanting to get the next three images (flower4.gif, flower5.gif, flower6.gif) to stack on top of each other and line up immediately to the right of the first three images, which they are also doing.
It looks like since the three images in each the img1 class and the img2 class are stacking on top of each other that the two groupings of images in the img1 and img2 div tags would also stack on top of each other. But they're not. They're lining horizontally just like I need them to.
The code seems to be working fine in both the FireFox and IE browsers.
You can copy the code below, save it as an Html file, then open it in a FireFox browser or IE browser and you can see what I'm talking about.
But I'm trying to get it clear for my own peace of mind that I've got the image configuration below designed properly and that I've not got the CSS code hacked up.
I would appreciate if anyone could tell me if the method below is proper or provide any input or suggestions about any better way of resolving my issue.
<html>
<head>
<style type="text/css">
div.img1
{
margin: 0px 0px 0px 0px;
border: 0px solid #A9A9A9;
float: left;
}
div.img2
{
margin: 0px 0px 0px 6px;
border: 0px solid #A9A9A9;
float: left;
}
</style>
</head>
<body>
<table>
<tr>
<td>col one</td>
<td>col two</td>
<td>
<div class="img1">
<div> <a href=""><img src="flower1.gif" width="110" height="90"></a></div>
<div> <a href=""><img src="flower2.gif" width="70" height="60"></a> </div>
<div> <a href=""><img src="flower3.gif" width="110" height="90"></a></div>
</div>
<div class="img2">
<div ><a href=""><img src="flower4.gif" width="110" height="90"></a></div>
<div><a href=""><img src="flower5.gif" width="110" height="90"></a></div>
<div><a href=""><img src="flower6.gif" width="110" height="90"></a></div>
</div>
</td>
</tr>
</table>
</body>
</html>
Thanks.