I've been having trouble trying to display an image inline with an unordered list.
Here's the HTML code:
<div class="customer-indiv man">
<a class="customer_thumb" href="/fan/332profile.com">
<img src="http://i.imgur.com/WiAvs8Q.jpg"/>
</a>
<ul>
<li><a href="/fan/332profile.com">name of user</a></li>
<li>phone no</li>
<li>text</li>
</ul>
</div>
CSS:
.customer_thumb {
display: inline-block;
}
.customer-indiv {
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
padding: .8em 0;
}
.customer-indiv:nth-child(4) {
border-bottom: 0;
padding-bottom: 0;
}
.customer-indiv:first-child {
padding-top: 0;
}
I want the output to show the image on the left and the 3 list items on the right, which I think my CSS should achieve. Like this:
name
IMAGE phone no
text
However, currently it displays like this:
IMAGE
name
phone no
text