Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

Getting right column border to extend down the page?

column borders

2:19 pm on Jan 8, 2009 (gmt 0)

New User

5+ Year Member

joined:Jan 8, 2009
posts: 1
votes: 0

I have the following CSS code in my stylesheet:

#pagecontentleft {float: left;width: 501px;text-align: left;line-
height: 20px;padding: 0;}
#pagecontentleft p {margin: 0;padding: 6px 0px 6px 6px;}
#leftcolumn1 {float: left;width: 249px;height: auto;border-left: 1px solid #F2ECCF;}
#leftcolumn1 p {padding: 0;}
#leftcolumn2 {float: left;width: 248px;border-left: 1px solid
#F2ECCF;border-right: 1px solid #F2ECCF;}
#leftcolumn2 p {padding: 0;}

Here is an example of that section, within a page on the site I am developing. "pagecontentleft" is the main area on the left containing the large photo and text and, below it, the two float regions aligned

As you can see, if the text content of the box on the right is less than the box on the left, the border will not run the full length of the first box, which looks disjointed.

How do I set "leftcolumn2" so that it runs the same length as "leftcolumn1"?
Similarly, if the content of leftcolumn2 is larger than leftcolumn1 then I also need to to be the same size.
I need both areas to be flexible, rather than a specified height, as there will be varying content in both.

Appreciate the help, thanks.

[edited by: eelixduppy at 3:04 pm (utc) on Jan. 8, 2009]
[edit reason] no personal URLs, please [/edit]

3:03 pm on Jan 8, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 14, 2003
votes: 0

Hi nathonjones,

Welcome to WebmasterWorld.

Equal column height is one of the 'hard' thing to achieve in pure CSS. There are workaround that can help you achieve this. The simplest being the 'css faux column' workaround. Try googling it. You should get a lot of article/tuts about how to implement it.

Also please note that links to personal websites are usually not authorised, so your post will probably get edited to remove your URL. Don't take it personally, it's one of the policies that make WebmasterWorld the great place it is. :)


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members