问题
I'd like to achieve this result

there are many tutorial around like this but they work with a fixed text and columns. I print a variable-length text inside my two column layout in this way
#cols {
column-count: 2;
column-gap: 20px;
}
<div id="box">
<p id="cols">
Lorem Ipsum....
</p>
</div>
so I can't use a technique like that, how can I put an image in the middle in this scenario?
回答1:
Here you are:
http://jsfiddle.net/aX47K/
css:
.column{
width:300px;
float:left;
margin-right:20px;
}
.column div{
width:200px;
height:210px;
}
#col-1 div{
float:right;
}
#col-2 div{
float:left;
}
img#center-image{
position:absolute;
left:110px;
}
来源:https://stackoverflow.com/questions/11100144/two-css3-columns-text-with-an-image-in-middle