Jump to content


Best way to scale a css site (when browser window is resized)


2 replies to this topic

#1 °•Guru•°

    Young Padawan

  • Members
  • Pip
  • 73 posts
  • Gender:Male
  • Location:Australia, Sydney

Posted 14 March 2007 - 06:27 PM

Hey all,

i'm trying to figure out which was is the best way to resize a css built website...i have it keeping proportions and moving everything over when it's resized width ways...but when it's done through the height things get a bit messed up....does anyone know any tutorials or solutions to this i need help with it!

Cheers :closedeyes:

#2 albinoAZN

    Albinos Are Extinct!!!

  • Members
  • PipPipPipPip
  • 1,139 posts
  • Gender:Male
  • Location:Mississippi, USA

Posted 14 March 2007 - 06:57 PM

I usually give the container div a min-height attribute. This makes it so that the height cannot go below the value that you give it.

it looks like this.
.container{
min-height: 200px;
}


#3 °•Guru•°

    Young Padawan

  • Members
  • Pip
  • 73 posts
  • Gender:Male
  • Location:Australia, Sydney

Posted 14 March 2007 - 07:47 PM

i tried that but my top bar still shrinks is possible to have it so that if you resize it up it just creates a scroll bar and the content doesn't stick with it when it moves up??

any idea on how to do that...
ps thanks for the help so far :rolleyes:





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users