Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 11-24-2005, 05:13 PM   #1
Member (7 bit)
 
Join Date: Aug 2003
Location: Hinckley in Leicestershire
Posts: 110
CSS height:100% problem

Here's the page with the problem on.. http://www.cse.dmu.ac.uk/~p05292984/...nt1/links.html

I've got the white menu on the left hand site.. and when you scroll down, the menu finishes. I want the menu to continue all the way down the page. I've set the menu div to "height:100%;". I thought that filled 100% of the body but it seems to be just filling 100% of the visable page.

Is there any way round this just using xhtml and css, needs to validate to strict xhtml on here too: http://validator.w3.org/

Cheers.
Tiestarian is offline   Reply With Quote
Old 11-24-2005, 05:22 PM   #2
~ Ryan ~
 
Join Date: Jun 2005
Location: Jackson TN
Posts: 3,516
Send a message via AIM to rspassey Send a message via MSN to rspassey
I'm sorry, but I dont even have a scroll bar, am I misinterpreting something?
__________________
RiotCats.com, an internet domain specifically fabricated and visually erected for the appreciation of the feline kingdom!
rspassey is offline   Reply With Quote
Old 11-24-2005, 05:39 PM   #3
Member (7 bit)
 
Join Date: Aug 2003
Location: Hinckley in Leicestershire
Posts: 110
Hmmm, what resolution are you using?

*Edit - Just added a load more content to the page so you should see what I mean now..


Last edited by Tiestarian; 11-24-2005 at 05:47 PM.
Tiestarian is offline   Reply With Quote
Old 11-24-2005, 05:50 PM   #4
~ Ryan ~
 
Join Date: Jun 2005
Location: Jackson TN
Posts: 3,516
Send a message via AIM to rspassey Send a message via MSN to rspassey
Page is the same, no scroll. resolution = 1280 x 1024
rspassey is offline   Reply With Quote
Old 11-24-2005, 06:06 PM   #5
Member (7 bit)
 
Join Date: Aug 2003
Location: Hinckley in Leicestershire
Posts: 110
Hmm ***. Couldn't post a screenshot by any chance could you?
Tiestarian is offline   Reply With Quote
Old 11-24-2005, 06:08 PM   #6
~ Ryan ~
 
Join Date: Jun 2005
Location: Jackson TN
Posts: 3,516
Send a message via AIM to rspassey Send a message via MSN to rspassey
Ahh, now that you added the "test" (which wasn't there after my last page view where I said the site looked the same) I see what you mean, the white menu does cut off.

What if you set the height to be "auto" (I am new to CSS, and want to impliment it into my sites, and have been reading lots on it, but haven't been able to try anything out, so I am just proposing ideas)

Quote:
#mainmenu {
line-height:36px;
font-size:18px;
background-color:white;
color:gray;
position:absolute;
top:0%;
left:0%;
height:auto;
width:14%;
text-align:center;
}

Last edited by rspassey; 11-24-2005 at 06:20 PM.
rspassey is offline   Reply With Quote
Old 11-24-2005, 11:44 PM   #7
Chop Chop
 
catacon's Avatar
 
Join Date: Jan 2005
Location: St. Louis, MO
Posts: 1,035
Send a message via AIM to catacon Send a message via Yahoo to catacon
Auto sets it to only how long it needs to be. I think 100% does the same. For a simple design like yours, you just use table, which would fix your problem.
catacon is offline   Reply With Quote
Old 11-25-2005, 09:55 AM   #8
Member (7 bit)
 
Join Date: Aug 2003
Location: Hinckley in Leicestershire
Posts: 110
Quote:
Originally Posted by catacon
Auto sets it to only how long it needs to be. I think 100% does the same. For a simple design like yours, you just use table, which would fix your problem.
Yeah that's what i'd do normally.. but it's for a uni assignment and i'm not allowed to use tables.

Auto doesn't work either
Tiestarian is offline   Reply With Quote
Old 11-25-2005, 10:39 AM   #9
Chop Chop
 
catacon's Avatar
 
Join Date: Jan 2005
Location: St. Louis, MO
Posts: 1,035
Send a message via AIM to catacon Send a message via Yahoo to catacon
I found a solution for you.

Make an image that is plain white (looks like 150x5 would work for you, I did 200x5). Then add the code to your CSS file. The menu division is the left menu and the content is everything on the right. THe only problem with this is, when the browser is too small, the content disappers into the left menu. To fix this, you could make the #menu image smaller and make the #content width less (75%, 70%,etc).
Code:
	
	body {
		  background-color: black;
		  background-image: url(white.jpg);
		  background-repeat: repeat-y;
		  background-attachment: scroll;
		  color: white; }
	#menu {
		   color: black;
		   width: 200px;
		   height: 100%;
		   float: left; }
		   
        #content {
			height: 100%;
		        width: 80%;
			  color: white;
			  float: right;
			  text-align: left; }
catacon is offline   Reply With Quote
Old 11-25-2005, 01:33 PM   #10
Member (7 bit)
 
Join Date: Aug 2003
Location: Hinckley in Leicestershire
Posts: 110
Quote:
Originally Posted by catacon
I found a solution for you.

Make an image that is plain white (looks like 150x5 would work for you, I did 200x5). Then add the code to your CSS file. The menu division is the left menu and the content is everything on the right. THe only problem with this is, when the browser is too small, the content disappers into the left menu. To fix this, you could make the #menu image smaller and make the #content width less (75%, 70%,etc).
Code:
	
	body {
		  background-color: black;
		  background-image: url(white.jpg);
		  background-repeat: repeat-y;
		  background-attachment: scroll;
		  color: white; }
	#menu {
		   color: black;
		   width: 200px;
		   height: 100%;
		   float: left; }
		   
        #content {
			height: 100%;
		        width: 80%;
			  color: white;
			  float: right;
			  text-align: left; }

Hmmm, can't get that to work for some reason It's just screwing up the text on the menu.

*Edit - Oh sorry it did work, i'd changed something earlier and forgot to put it back. Legend, Cheers

So is there no way to resize that background image with a percentage?

Last edited by Tiestarian; 11-25-2005 at 01:48 PM.
Tiestarian is offline   Reply With Quote
Old 11-25-2005, 01:55 PM   #11
Chop Chop
 
catacon's Avatar
 
Join Date: Jan 2005
Location: St. Louis, MO
Posts: 1,035
Send a message via AIM to catacon Send a message via Yahoo to catacon
I can't find how to do that. You can make the image smaller, but I don't beleive you can change the background size.
catacon is offline   Reply With Quote
Old 11-25-2005, 04:01 PM   #12
Member (7 bit)
 
Join Date: Aug 2003
Location: Hinckley in Leicestershire
Posts: 110
Ah ok no probs.. that should be a good enough fix anyway, cheers
Tiestarian is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:01 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2