I have three divs left - center - right, I need in case if document is opened in mobile,
to show left and right elements in one line and under them center element
I need:
a) PC
[left] [ long text in center ] [right]
b) PC smaller screen !impartant!
[left] [ long text [right]
in center ]
c) Mobile (smaller then 736px )
[left] [right]
[ text in center ]
I have found solution for (a) and (c) cases but it is not working for middle case (b)
look: http://jsfiddle.net/66fCm/692/
.wrap {
text-align: center
}
.left {
float: left;
background: grey
}
.right {
float: right;
background: red
}
.center {
text-align: left;
background: green;
margin: 0 auto !important;
display: inline-block
}
<div class="wrap">
<div class="left">
left
</div>
<div class="right">
right
</div>
<div class="center">
center | Far far away, behind the word mountains, far from
</div>
</div>