View Full Version : CSS position attached to bottom of another css box

01-06-2004, 03:00 AM
Brief: I want a graphic's position to be at the bottom of a list that is controlled by another class, but has the height tag of "auto" so it's different so I can't set a static position for the graphic.

Ok, so I have this great setup where I list all my games and using CSS it's placed near the right of my screen and mid-way down. The size is like 500px wide and the height is auto so I can make it as long as it needs to be. Now I have a background that is two white stripes down the outside (500px wide to match the list's width). So far so good, I can list as much or as little as I want and the sides are always giong to be there! Now I have an image at the top of my list that is a horizontal bar to make the top of my list. At the bottom

I want to have a shape like this:
\________| (notice the angle).

But with my background being the two vertical lines:
| blah blah | .

I get this when I put the image at the bottom of the list (it's still inside my tags so it's positioned by the list's class):

I want the area left of the angle to be transparent to show off the background of the whole page. But the list's background has a dark gray between the two bars so it doesn't work.

so how do I make the bottom graphic's( \_____| ) position be wherever the list ends (the list is on auto so it'll change), or is there another way to do this?



Roy Sinclair
01-06-2004, 02:32 PM
Post a link or the code, the images showing what you've getting vs what you want are ok but unless we can see what you've got already we can't start to help you.

01-06-2004, 09:59 PM
on the base element use the following:

position: relative;
top: <the height of the image>