How to position image next to text with padding?
css, html
Solution
I think you are looking for something like this. http://jsfiddle.net/3HZr7/
<h2>
<img src="img.jpg" height="75px">
<span>some text</span>
</h2>
h2{
overflow: auto;
}
h2 span{
float: left;
margin-top: 10px;
margin-left: 10px;
}
h2 img{
float: left;
}
Problem
``` <h2><img src="img.jpg" height="75px"> some text</h2> ``` I would like to position my image right next to a block of text but have it padded down slightly, how can I achieve this? I have tried `style: padding 10px;` without success inside the image tag.