Forum Moderators: not2easy

Message Too Old, No Replies

Navigation's background

         

ridingforlife

2:48 am on May 11, 2008 (gmt 0)

10+ Year Member



I have a navigation column div on the left, and a content div on the right.

I have an image that I want to be at the bottom of the navigation column on the left. However, the navigation div only extends to the end of the links. So, I have used the content's left border to fill in the width and length of navigation column so that it is black all the way down to match the length of the content div no matter what the length the content is.

Is there a way to go about getting the image to the bottom of the navigation colum and to move up/down with the length of the navigation/content?

Thanks.

Wolf_man

6:58 pm on May 13, 2008 (gmt 0)

10+ Year Member



how about setting the navigation's column length equal to the length of the content div (using javascript is probably easiest) and then just placing a background image into the bottom left corner of the navigation link.

something like:


document.getElementById("navigation").height=document.getElementById("content").height;

and the css something like:

#navigation{background-image:url('image.png') bottom left;}