Forum Moderators: not2easy
#menu {
[b]border-left: 1px dotted #000000;[/b]
padding-left: 15px;
margin-right: -15px;
float: right;
width: 170px;
font-size: 10px;
}
But when the main content reaches further down on the page than the contents of the right menu, the border doesn't continue down. Instead it gets cut off where the content of the menu ends, and I can't figure out how to make it "stretch" with the rest of the content - i.e making the height of the menu follow the height of the page dynamically as it changes. Wow, did that make any sense?
I tried setting the height of #menu to
height: 100%, but that didn't do anything at all.
I can't figure out how to make it "stretch" with the rest of the content
Hi there, this is my first post on this forum.
I've suffered the same problem on a three-column layout I've been working on recently. I cheated and added empty paragraphs to the end of the navbar in order to extend its length, and hence its border. I can imagine this would be a pain if the navbar content was generated automatically though.
I'm sure there's a better way to do it, but I've only taken up CSS in the last few months myself, so I'm still finding my way(!)
HTH,
John
a) Use tables and css?
b) Have the menu div inside the content div and the content div have a background image repeat down the side you want the menu. Make the menu div fit inside the background repeat image.
I would use a table with an id and use css to control the style of it. I am not too hung up about tables.