Making A CSS "container" Stretch To Fit The Screen
#1
Posted 09 September 2006 - 02:14 PM
I'll probably also kick myself when it's sorted out, probably a really simple solution, normally is though, isn't it?
Thanks - Dan.
#2
Posted 09 September 2006 - 03:32 PM
body, html {width:100%; height: 100%;}
and then add this to style sheet:
.divcontainername {height: 100%;}
#3
Posted 09 September 2006 - 04:03 PM
try something like this:
* { margin: 0px; padding: 0px; } html { margin: 0 auto; height: 100% width: 100% } body { margin: 0 auto; height: 100% width: 100% } .divclass { margin: 0 auto; height: 100% width: 100% } #divid { margin: 0 auto; height: 100% width: 100% }
Hope you can figure it out.
dEcade
#4
Posted 11 September 2006 - 10:25 AM
OK, that's nearly sorted it... it is now stretching, although only for one screen length, then it stops :S.
(I've reuploaded the code again http://danbeckett.co.uk/blog.htm and http://danbeckett.co.uk/blog.css)
Thanks - Dan.
Edited by DanBeckett, 11 September 2006 - 10:37 AM.
#5
Posted 12 September 2006 - 12:49 AM
Attached Files
#6
Posted 12 September 2006 - 09:38 PM
Trust me, don't waste your time.
#7
Posted 13 September 2006 - 06:00 AM
#8
Posted 13 September 2006 - 11:14 AM
#9
Posted 13 September 2006 - 01:16 PM
There's no simple solution to this. I've tried every possible way and I've seen others try it. It's a widely known fact that there's no way to do this without using Javascript or some other over-complicated method.
Trust me, don't waste your time.
So it's safe to assume that the layout I offered isn't close to what your after then...?
#10
Posted 13 September 2006 - 02:47 PM
#11
Posted 14 September 2006 - 02:58 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users