After searching online, I came across a potential solution to my issue using the CSS3 property border-image-outset
. However, since no browser supports this yet, I am seeking assistance in finding an alternative solution. Thank you in advance for any help.
Here is the layout that a friend designed for me, which I am currently translating into HTML/CSS.
The main issue lies with the content area. The width is fixed, but the height varies depending on the content. It features a medium section with a repeated 1px high background image covering the entire width. However, there are also decorative corners on a transparent background that are too tall to extend beyond the content area. Additionally, there are different images above and below these corners, but that is no longer a concern with multiple background images.
How can I fill the content area .main
with the repeated background without it showing behind the corners?
I have provided some examples to illustrate my problem, though most styles and images are still missing. The 1px paddings/borders are included for clarity.
Initially, I attempted a straightforward approach using one header and one footer image. However, I struggled to make the content overlap both the header and footer image while maintaining the desired height. See it here:
Next, I divided the image into approximately 100 pieces. Although I am only missing one small piece on the left side below the subnavigation, I am still facing the same challenge as before. View it here:
I have experimented with various techniques, resulting in a somewhat messy markup. Please disregard this for now, or feel free to start fresh. The only thing currently defined is the order and positioning of these two divs:
<div class="rechteSpalte">...</div>
<div class="mittlereSpalte">...</div>
I have created a fiddle with the second example for you to explore and test out your ideas.