PDA

View Full Version : scaling a CSS built website with browser resize??



- |Flash Man| -
March 13th, 2007, 02:04 AM
Hey all,

how would you go about scaling AND keeping the correct proportions of a site built with css...when the user resizes there browser window??

Cheers :)
:ex:

Icy Penguin
March 13th, 2007, 03:02 AM
Use %, not px.

e.g.



div#blah {
/*no no no not:
width: 750px;*/
/*do this instead*/
width: 59%
}


theres also a cool zoom in/out feature on the web developer toolbar firefox extension, you could check that out too

- |Flash Man| -
March 13th, 2007, 03:18 AM
Awesome great thanks i'll give that a try and get back to ya :D