css: top and bottom with flexible centre

Posted by Haroldo on Stack Overflow See other posts from Stack Overflow or by Haroldo
Published on 2010-05-06T14:08:48Z Indexed on 2010/05/06 14:38 UTC
Read the original article Hit count: 177

Filed under:
|

is it possible with just css2 to have the following:

3 divs:

<div id="wrap_centre">
    <div class="top"></div> 
    <div class="mid"></div>             
    <div class="bot"></div> 
</div>
  • all the content to be in the flexible div.mid section
  • overlap the top and bottom parts
  • not fussed about ie6

here's the photoshop with centre slice:

alt text

as you can see the top and bottom parts are quite large and i need to overlap them from the middle slice...

© Stack Overflow or respective owner

Related posts about css

Related posts about html