I have the following Divs:
-
Apply a float:left
on .custimage
.custimage{
position:relative;
margin-top: 15px;
margin-left: 15px;
height: 170px;
width: 130px;
background-color: #999;
text-align:left;
float: left; // float all cust images to the left so they stack up against each other
}
讨论(0)
-
Add float: left
to .custimage
.
讨论(0)
-
two ways:
first: add float:left
to your .custimage
second: instead of float, add display:inline-block
to your .custimage.
The second one does not work in older Browsers, but is way more cleaner than let all float around.
讨论(0)