To achieve the desired layout, you can utilize the float
property in CSS.
Below is a snippet of the HTML code:
<div>
<img src="http://www.igta5.com/images/trailer-2-gtav-logo.jpg" alt="GTA V" />
<p>
Lorem Ipsum content...
</p>
</div>
Corresponding CSS code:
div img {
width: 240px;
float: right;
padding: 25px;
}
Try it out on jsFiddle.
Update
If you want to space the sides of the image using only CSS, you can utilize absolute positioning.
Here's how your updated HTML would look like:
<div class="left">
Content for left side...
</div>
<div class="right">
Content for right side...
</div>
<img src="http://www.igta5.com/images/trailer-2-gtav-logo.jpg" style="width: 240px; height: 140px;">
The corresponding CSS style:
img {
position: absolute;
top: 0;
left: 50%;
margin-left: -125px;
margin-top: 60px;
}
.left, .right {
width: 49%;
}
.left {
float: left;
}
.right {
float: right;
}
.left:before, .right:before {
content: "";
width: 125px;
height: 200px;
}
.left:before {
float: right;
}
.right:before {
float: left;
}
Experiment with it on jsFiddle.
Additional Resources
For more insights, refer to this discussion on StackOverflow.