Css div with header and footer and dynamic content height

Posted by Argiropoulos Stavros on Stack Overflow See other posts from Stack Overflow or by Argiropoulos Stavros
Published on 2011-03-20T15:54:53Z Indexed on 2011/03/20 16:10 UTC
Read the original article Hit count: 251

Filed under:
|
|
|

I want to construct a div that has a header with background like that enter image description here

some content with a background of one pixel repeated at y(or not?)

and a footer with background like that enter image description here

resulting in something like that with some text in the div content enter image description here

I want to have the same result with 5 lines or 50 lines of text.

In my mind there is an html snippet like

<div id="header"></div>
<div id="content">Text goes here</div>
<div id="footer"></div>

but i can't think of the css or jquery code or anything that goes with that.

I hope i demonstrated the problem clearly Cheers

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about html