Old 07-06-2006, 06:00   #1 (permalink)
KrisMarissens
or just Kris
 
Join Date: Jun 2005
Location: Brussels - Belgium
Posts: 123
Vertical 100%

Hi there,

Can someone help me in finding the best way to set the pages to 100% height, while maintaining the 760 px width?

Would i have to add another div set to 100% height inside the wrapper/container div? I suppose mixing pixels and % in the same class doesn't work in CSS...

Thanks in advance.

http://www.cmstest2.be

Last edited by KrisMarissens : 07-06-2006 at 08:04.
  Reply With Quote
Old 07-06-2006, 06:39   #2 (permalink)
finbarr
who the fuck am i?
 
finbarr's Avatar
 
Join Date: Apr 2005
Location: london
Posts: 2,670
Send a message via MSN to finbarr Send a message via Skype™ to finbarr
mixing % and pixels is not the problem... perfectly acceptable practice.

your page doesnt load for me so cant see what youre getting at
  Reply With Quote
Old 07-06-2006, 06:45   #3 (permalink)
KrisMarissens
or just Kris
 
Join Date: Jun 2005
Location: Brussels - Belgium
Posts: 123
Quote:
Originally Posted by finbarr
mixing % and pixels is not the problem... perfectly acceptable practice.

your page doesnt load for me so cant see what youre getting at


Maybe i oughta check my typing now and then...

The url in url tag wasn't the correct one

Here is the correct one: http://www.cmstest2.be
  Reply With Quote
Old 07-06-2006, 06:52   #4 (permalink)
finbarr
who the fuck am i?
 
finbarr's Avatar
 
Join Date: Apr 2005
Location: london
Posts: 2,670
Send a message via MSN to finbarr Send a message via Skype™ to finbarr
so you want the page to stretch to the bottom of the screen?

If so do a search for 'css faux column technique' on google... give you plenty of tutorails on the subject

ps: your css is frightening... impossible to search for details relating to your subject.
  Reply With Quote
Old 07-06-2006, 06:52   #5 (permalink)
Red Cap
senior member
 
Red Cap's Avatar
 
Join Date: Sep 2005
Location: auckland, nz
Posts: 323
not sure what youre getting at, but if you want the background of your container to stretch the height of the window, you could try taking a horizontal slice of the bg and repeating it vertcally like;

body {
background-image: url{../images/bg_slice.gif};
background-position: top center;
background-repeat: reapeat-y;
}
  Reply With Quote
Old 07-06-2006, 06:53   #6 (permalink)
i3lance
Read between da lines!
 
i3lance's Avatar
 
Join Date: Apr 2005
Location: UK, former Londoner
Posts: 849
Send a message via MSN to i3lance Send a message via Skype™ to i3lance
make sure that your body and html have 100% within its properties also. Everything else contained within them ultimately are controlled by the body and html properties.

That's what works for me.
  Reply With Quote
Old 07-06-2006, 06:54   #7 (permalink)
Red Cap
senior member
 
Red Cap's Avatar
 
Join Date: Sep 2005
Location: auckland, nz
Posts: 323
^^^ thats an eg. of faux columns thanks finbarr

the body tag is always 100% of the vertical height

also have a look at 'css rollovers' for your buttons
  Reply With Quote
Old 07-06-2006, 06:56   #8 (permalink)
finbarr
who the fuck am i?
 
finbarr's Avatar
 
Join Date: Apr 2005
Location: london
Posts: 2,670
Send a message via MSN to finbarr Send a message via Skype™ to finbarr
Quote:
Originally Posted by Red Cap
^^^ thats an eg. of faux columns thanks finbarr

the body tag is always 100% of the vertical height
haha... thats fine RC
  Reply With Quote
Old 07-06-2006, 08:02   #9 (permalink)
KrisMarissens
or just Kris
 
Join Date: Jun 2005
Location: Brussels - Belgium
Posts: 123
Quote:
Originally Posted by finbarr
ps: your css is frightening... impossible to search for details relating to your subject.


I'll have to put some proper structure into it...

Last edited by KrisMarissens : 07-06-2006 at 09:00.
  Reply With Quote
Old 07-06-2006, 08:15   #10 (permalink)
KrisMarissens
or just Kris
 
Join Date: Jun 2005
Location: Brussels - Belgium
Posts: 123
Quote:
Originally Posted by Red Cap
^^^ thats an eg. of faux columns thanks finbarr

the body tag is always 100% of the vertical height

also have a look at 'css rollovers' for your buttons



Path to .js preloader now corrected. Thanks for pointing that out!
  Reply With Quote
Old 07-06-2006, 11:25   #11 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
Quote:
Originally Posted by Red Cap
body {
background-image: url{../images/bg_slice.gif};
background-position: top center;
background-repeat: reapeat-y;
}
Better yet:

body { background: url(../images/bg-image.gif) repeat-y top center #color; }
  Reply With Quote
Old 07-06-2006, 11:31   #12 (permalink)
KrisMarissens
or just Kris
 
Join Date: Jun 2005
Location: Brussels - Belgium
Posts: 123
The trouble is that i would like for the blue and gray background (table cells) to follow down also, and i'm kind of fond of that little white border surrounding the whole.

so that pretty much rules out the background repeat attribute i'm affraid...
  Reply With Quote
Old 07-06-2006, 11:59   #13 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
No...that's exactly what background repeat is for. Google "faux columns css" and you'll find your answer.
  Reply With Quote
Old 07-06-2006, 18:27   #14 (permalink)
Red Cap
senior member
 
Red Cap's Avatar
 
Join Date: Sep 2005
Location: auckland, nz
Posts: 323
Quote:
Originally Posted by pgo
Better yet:

body { background: url(../images/bg-image.gif) repeat-y top center #color; }

didnt want to throw shorthand at a newbie
  Reply With Quote
Old 07-06-2006, 22:51   #15 (permalink)
KrisMarissens
or just Kris
 
Join Date: Jun 2005
Location: Brussels - Belgium
Posts: 123
Quote:
Originally Posted by pgo
No...that's exactly what background repeat is for. Google "faux columns css" and you'll find your answer.


Not really. Correct me if i'm wrong, but the thing is: i want to add a little white border at the top, left side, right side AND BOTTOM of the box, this makes the repeating background unfit as a possible solution .

If it weren't for the white line, i would indeed only be needing this - imho wouldbe - solution...

Cheers.
  Reply With Quote
Old 07-06-2006, 23:18   #16 (permalink)
KrisMarissens
or just Kris
 
Join Date: Jun 2005
Location: Brussels - Belgium
Posts: 123
Or maybe i'll just add that extra div with the repeating background and change the table into floating divs. That will do the trick.

Thanks all.

Last edited by KrisMarissens : 08-06-2006 at 01:21.
  Reply With Quote
Old 08-06-2006, 05:11   #17 (permalink)
finbarr
who the fuck am i?
 
finbarr's Avatar
 
Join Date: Apr 2005
Location: london
Posts: 2,670
Send a message via MSN to finbarr Send a message via Skype™ to finbarr
remember to post back the end result, wont you?
  Reply With Quote
Old 08-06-2006, 05:27   #18 (permalink)
Red Cap
senior member
 
Red Cap's Avatar
 
Join Date: Sep 2005
Location: auckland, nz
Posts: 323
hes already put it up finbarr http://www.cmstest2.be/
  Reply With Quote
Old 08-06-2006, 05:34   #19 (permalink)
finbarr
who the fuck am i?
 
finbarr's Avatar
 
Join Date: Apr 2005
Location: london
Posts: 2,670
Send a message via MSN to finbarr Send a message via Skype™ to finbarr
Quote:
Originally Posted by Red Cap
hes already put it up finbarr http://www.cmstest2.be/
hmmm... do I feel sheepish
  Reply With Quote
Old 08-06-2006, 05:42   #20 (permalink)
KrisMarissens
or just Kris
 
Join Date: Jun 2005
Location: Brussels - Belgium
Posts: 123
So anyway, i went with the the repeating background image in the body element and ditched the top and bottom white border...
This is indeed the fastest solution (in a band-aid-like sense).

Thanks very much.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8