Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Web Design & Development
Tag Cloud
access acer asus batch bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory modem monitor motherboard mouse network printer problem ram registry router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Column Height Question - Plz Help

Reply  
Thread Tools
r3drock3t88's Avatar
Computer Specs
Member with 272 posts.
 
Join Date: Jan 2007
Experience: Advanced
26-May-2007, 03:09 PM #1
Column Height Question - Plz Help
Hello,

I have a problem on my website. I would like for my left and right columns to be at the same height as my main middle column. I tried creating an image that is the same color as my columns color, then setting that in CSS as the columns background image and repeating that vertically. I read somewhere that it should repeat constantly until it reaches the longest column, but that didn't work out like I planned.

Does anyone know how I would go about getting my columns all the same length? Thank you in advance!
MMJ's Avatar
MMJ MMJ is offline
Senior Member with 3,637 posts.
 
Join Date: Oct 2006
26-May-2007, 04:15 PM #2
Post the css code.
r3drock3t88's Avatar
Computer Specs
Member with 272 posts.
 
Join Date: Jan 2007
Experience: Advanced
26-May-2007, 04:54 PM #3
#navBar{
float: left;
width: 20%;
margin: 0px;
padding: 0px;
background:url(images/filler.gif) repeat-y;
border-right: 1px solid #cccccc;
border-bottom: 1px solid #cccccc;
}

It repeats until it gets to the end of the column, but it doesn't move the column like I was hoping. I'd like all the columns to be the same height
WendyM's Avatar
Distinguished Member with 3,420 posts.
 
Join Date: Jun 2003
29-May-2007, 03:45 PM #4
Hi rock,
Do you have a link to your page where we could view all of the code? I'm guessing that you need a div around both columns. If you create a background image on that "wrapper" div that's the width of your left column and have it repeat down the side, you should get what you're looking for. For example, if you call that div "content", your css for that div would look something like this:

Code:
#content {
	background: url(../images/background.jpg) top left repeat-y;
	margin:0;
	padding:0;
	float:left;
	}
That only adds it to the left side so to add it to both you could add another div like

Code:
#content_right {
	background: url(../images/background.jpg) top right repeat-y;
	margin:0;
	padding:0;
	float:right;
	}
There's probably a cleaner way to do it, but that's worked for me in the past. Hope that helps.
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 01:57 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.