-2

I am trying to create a web page that looks like like in this site:

enter image description here

I tried creating an image with that design(the one in the middle with a white background and pointy edges on the top and bottom) but the result is that the image is static and does not dynamically change when the content of the page changes.

I do not know if I can implement the design by customizing the <div> borders or upload the design as a background image then dynamically create it.

Thanks for all the help.

Yotam Omer
  • 15,310
  • 11
  • 62
  • 65
CuriousGirl
  • 7
  • 1
  • 3

2 Answers2

3

If you don't want to use CSS3 (for more browser support) use the following structure:

<div class="conatiner">
    <div class="pointyHeader"></div>
    <div class="content">
         your dynamic content here
    </div>
    <div class="pointyFooter"></div>
</div>

where pointyHeader and pointyFooter have a fixed height and background image.

Working jsFiddle

Yotam Omer
  • 15,310
  • 11
  • 62
  • 65
0

I thought of a .box { position: relative; } and a .top { position: absolute; top: 0; } and same with bottom .bottom { position: absolute; bottom: 0;}

check it here: http://jsfiddle.net/DyG8F/

bboy
  • 1,357
  • 2
  • 15
  • 31