I am an amateur web designer who is stuck - obviously.

I want to create a web site that uses semi transparency, but after some research discovered earlier versions of internet explorer hate transparency.

A such i found a way around that. Technically ignore transparency by making all effects in images. This works fine.

However, I am not sure how to achieve a layout made of images.

Here is one column of my website:

The issue I am having is I want to use the image as the column, however, I will need to break it up into three sections - top middle and bottom - so that I can allow for more text if required.

So, after that long statement, what I need is the following:

1. How to make the layout from images
2. How do I make it so the middle section duplicates itself to cover the text.

You would have

DIV for the top section
DIV for the middle section
DIV for the bottom section

But I need it so the middle DIV; when more text is added, will in essence repeat the image.

Recommended Answers

All 5 Replies

the top and bottom div's can be fixed size. the middle div will have a background-image 1 pixel high with a repeat-y. You can see something similar at one of my sites: kledingbank-limburg.nl The yellow/blue/white left and top is actually a 1 pixel image. Extract the css from the page, tidy it, and you'll have your example.

so your html will look something like this

<div class="top"></div>
<div class="middel">
<div class="bottom"></div>

and your css

.top {
.middel {
.bottom {

obviously you would use your own heights, image names etc.


I tried your way and it didnt work :(

I removed the centre tags from your code and it worked

I have one more question.
How do I make it so the text doesnt go past 30px?
so that it doesnt extend past the borders of my image background?

Also, how would I make it so that if I link text within the box, the backgrounddue to the hover will touch the white border?

I have this bit of code:

a:hover {
 background-color: #DEF;
 border: 1px dashed #ACE;
 margin: 0 -3px 0 -3px;
 padding: 0 40px 0 2px;

However, that changes for each link, with one link fitting perfect, and anothers background going paste the border line (of the image)

Thanks a lot for your help guys, i was also looking for the solution, as i was trying to change layout of one of my <URL SNIPPED>cheap web hostingsite, but failed to do it, will give it a shot again today.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.