Should look like this:
[img] text text
text text
How is this accomplished?
Seems straight forward, but I'm struggling.
in order to have text on the left or right of the image you can style your img as style="float:left"; or style="float:right"; If the text is too close to the image you can play with padding: 10px; or less.
To align the image to the right use attribute value as “right”. Example: HTML.
Select the text that you want to align. On the Home tab, in the Paragraph group, click Align Left or Align Right .
Put the image's maximum width to 100% with the max-width property. Set the flex-basis property of the "image" class to specify the initial main size of your image. Choose the font size of your text with the help of the font-size property. Use the padding-left property to set the padding space on the text's left side.
You can use display:inline-block;
img{
display:inline-block;
width:75px;
height:100px;
border:1px solid red;
vertical-align:top;
margin-right:10px;
}
div{
display:inline-block;
width:200px;
}
Example: http://jsfiddle.net/jasongennaro/SK9ad/
To make inline-block;
work with IE7, add the following to each rule:
zoom: 1;
*display:inline;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With