I'm trying to make this very simple code work. There's supposed to be a box (item) which contains (image) on the left and (text) next to it. Simple I thought?! I must be doing something very obviously wrong...
If anyone can help I'd be greatfull!
If anyone can help I'd be greatfull!

Code:
<style type="text/css">
* {
padding:0;
margin:0;
}
.container{
border:1px solid #00f;
padding:10px;
margin:10px
}
.item{
border:1px solid #000;
margin-bottom:10px;
clear:both;
}
.image{
margin:5px;
}
.text{
margin:5px;
float:left;
}
</style>
<div class="container">
<div class="item">
<div class="image">
img<br/>
img
</div>
<div class="text">
1st line of text<br/>
</div>
</div>
<div class="item">
<div class="image">
img<br/>
img
</div>
<div class="text">
1 line of text<br/>
2nd line of text
</div>
</div>
</div>
Last edited: