CSS Help! Basic float problem
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:
.photo{
width:150px;
height:auto;
float:left;
margin:5px;
} Your help will be acknowledged.
Regards
-
Patrick -
Thanks - 1 reply
SignatureWebsite Development | Shopify Development | WordPress Development |Headless Development{{ DiscussionBoard.errors[4685466].message }}-
fazlerocks -
Thanks - 1 reply
{{ DiscussionBoard.errors[4685577].message }}-
Patrick -
Thanks
SignatureWebsite Development | Shopify Development | WordPress Development |Headless Development{{ DiscussionBoard.errors[4687523].message }} -
-
-
-
Kezz -
Thanks
{{ DiscussionBoard.errors[4687091].message }} -
-
Testeds -
Thanks
{{ DiscussionBoard.errors[4687637].message }} -