Here is what I’m trying to achieve.
I have 3 divs. Let’s call them left center and right. The width of center div is dynamic. It could be 100px, 200px etc depending of the image that center div hold.
How to do so the left and the right divs to be stick to the center div regardless of the center div size ?
Here is what I’m trying to achieve. I have 3 divs. Let’s call them
Share
Something like http://jsfiddle.net/t3Gjx/?
HTML:
CSS:
Edit:
As Zoltan Toth said, if the window width less then the elements combined width, they will stack vertically and not beside each other.
If you don’t want that, add
See it here: http://jsfiddle.net/t3Gjx/1/