I have successfully used a
<div style="margin:0 auto; ">
tag with the specified property, working perfectly. However, I added another <div>
above and set the float as follows:
.gallery-div{
background:url(images/gallery-bg.png) repeat-y;
float: left;
width:101px;
margin:2px 2px 0px 2px;
border-bottom:2px #9b9b9b solid;
}
The issue is that it is aligning to the left side instead of center. If I remove the float: left;
, they stack on top of each other.
Please refer to the screenshots below for clarity.
Any assistance would be greatly appreciated.