Jump to content

Extending line down


youngros

Recommended Posts

If your right column is always going to be longer than #content, I would put the border on that and make it a little wider.

Otherwise you could add some padding-bottom to #content which will push the border down, but also give you a gap if the right column gets longer than it presently is.

Link to comment
Share on other sites

I would suggest creating a div that wraps #content and #rightcolumn, and then giving that a repeating background image that simulates the border. That way, it will stretch/collapse with the length of the content, and you won't be relying on either the #content or the #rightcolumn to be long enough.

 

An alternative to Lynne's suggestion of using padding is to use a min-height on #content, to ensure it is always as long or slightly longer than the #rightcolumn, but keep in mind that IE6 doesn't support it (though there are hacks/fixes for that)

Link to comment
Share on other sites

As the main page will alter length depending on the data I have decided to go with the min-height option.

I know it is probably wrong, but IE8 has been around for a while and it is bad enough now getting used to that without having to worry about IE6. Stats show that around 10% are still using IE6, but 90% are not. Times move on and it's a personal site.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...