|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#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. |
|
|
|
|
|
#2 |
|
~ Ryan ~
|
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! |
|
|
|
|
|
#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. |
|
|
|
|
|
#4 |
|
~ Ryan ~
|
Page is the same, no scroll. resolution = 1280 x 1024
|
|
|
|
|
|
#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?
|
|
|
|
|
|
#6 | |
|
~ Ryan ~
|
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:
Last edited by rspassey; 11-24-2005 at 06:20 PM. |
|
|
|
|
|
|
#7 |
|
Chop Chop
|
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.
|
|
|
|
|
|
#8 | |
|
Member (7 bit)
Join Date: Aug 2003
Location: Hinckley in Leicestershire
Posts: 110
|
Quote:
Auto doesn't work either
|
|
|
|
|
|
|
#9 |
|
Chop Chop
|
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; }
|
|
|
|
|
|
#10 | |
|
Member (7 bit)
Join Date: Aug 2003
Location: Hinckley in Leicestershire
Posts: 110
|
Quote:
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. |
|
|
|
|
|
|
#11 |
|
Chop Chop
|
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.
|
|
|
|
|
|
#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
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|