<div class="row outer">
<div class="span4"><div class="inner2">Line 1<br/>Line 2</div></div>
<div class="span4">
<img style="width:40%" src="http://lorempixel.com/90/90/abstract/" alt="" />
<div class="inner3">This is a line of text.
<br />This is another line of text.
<br />This is a third line of text.</div>
</div>
</div>
CSS
/* .inner working but positioned relative
use .inner3 where you have 3 lines of text and
.inner2 where you have 2 lines, and adjust to suit
You will need @media queries if the layout is to be responsive...
*/
.inner3 {
position:relative;
top:12px;
}
.inner2 {
position:relative;
top:20px;
}
/* Mostly your stuff... */
.outer {
border:2px solid red
}
.outer img {
display:block;
}
.outer .row {
padding:4px;
background-color:#CC9966
}
.span4 {
background-color:#555;
width:100px;
text-align:right
}
.span8 {
background-color:#777;
width:400px
}
.row img {
float:left;
padding-right:5px;
width:90px;
height:90px;
}
/* styles from bootstrap */
.row {
margin-left: 0px;
*zoom: 1;
}
.row:before, .row:after {
display: table;
content:"";
line-height: 0;
}
.row:after {
clear: both;
}
[class*="span"] {
/* display:inline-block; */
float: left;
min-height:1px;
margin-left:12px;
}
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.