I have a bit of a tricky issue with the CSS background. Check out my try here: http://beveragebros.com/bbnew/scroll.html
The background I'm talking about is the βparchmentβ where the copy is located. This parchment is not a simple texture that I'm used to dealing with. Normally, I would define the "upper" and "lower" parts, and then repeat the pattern for the middle. This would allow me to create an automatically expanding div depending on the size of the content. This case is not so simple because the top 75% of the pattern is not repeated.
I know that there is a better way to do this, but I rack my brains for many hours and cannot find a suitable solution. Any thoughts?
We recently discussed this with:
#body-text { background-image:url(images/repeat_scroll.png); background-repeat:repeat-y; width:730px; } #copy { position:relative; top:-200px; }
Markup:
<div id="body-text"> <img src="images/top_scroll.png" alt="Top" /> <div id="copy"> Testing Testing Testing Testing Testing </div></div>
However, the problem is that the body-text of the div automatically expands, even though the text has not reached the bottom of the containing div. It would be simple if CSS allowed multiple backgrounds with different z-indexes. #rippingmyhairout
source share