Hello Warriors, I have got some problem making an auto positioned image gallery. Please check the attached image with this thread.
CSS Help! Basic float problem
6
Hello Warriors,
I have got some problem making an auto positioned image gallery. Please check the attached image with this thread.
I have added a class, ".photo", with each image and made the width property to 150px and height as auto. The images are of different height, so when a new line is formed there is some gap left between the lines.
The code I have used is as follows:
I want to remove the gap from the top of the image when a new line starts. The images must auto adjust their position so that it looks like they are floating. I want the images to stick to each other as well as maintaining the aspect ratio.
Your help will be acknowledged.
Regards
I have got some problem making an auto positioned image gallery. Please check the attached image with this thread.
I have added a class, ".photo", with each image and made the width property to 150px and height as auto. The images are of different height, so when a new line is formed there is some gap left between the lines.
The code I have used is as follows:
Code:
.photo{
width:150px;
height:auto;
float:left;
margin:5px;
} Your help will be acknowledged.
Regards
- Patrick
- [1] reply
- fazlerocks
- [1] reply
- Kezz
- Testeds
Next Topics on Trending Feed
-
6