advanced 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 15:38 UTC
Read the original article Hit count: 157

Filed under:
|

is it possible with just css2 to have the following:

  • 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...

Please dont misunderstand here, i understand how to make a flexible central div, the complexity is in the overlapping of the top and bottom while the mid div remains flexible.

I imagine it requires either negative margins or absolutely position top and bottoms elements with z-index..

© Stack Overflow or respective owner

Related posts about css

Related posts about html