I got 3 divs that:
- need to to be side by side ( in a row)
- all have a background imgage
- the center div need to adjust the width automatic, center div’s width dependance on the content that have been inserted into the div( longer text = longer width
- center div needs to be at the center of the page too.
- the divs on sides have diffrent backgrounds img.
HTML Code:
<div class="spanl"></div>
<div class="center">Headline</div>
<div class="spanr"></div>
note that the divs in sides are empty.
something like this:
http://jsfiddle.net/fsnuh/134/
Is this possible to do with css or css3? If not how can I do it with jquery or raw javascript?
Tables for the win! fiddle