PDA

View Full Version : Can i resize a page or Div ?


Chapo
08-04-2008, 10:38 PM
I have my page at a width of 1200 px, for older computers or monitors its a problem because a lateral scroll apears to fully see the page width. Is there a way that my page could resize to fit any monitor ?

Basically my page is made by Nested Div's (divs inside divs). The width is 1200

www.fotobelleza.com

edbr
08-05-2008, 02:32 AM
using percentages, width:100%;

Chapo
08-05-2008, 05:49 AM
And if I have a .jpeg inside a DIV, it will also resize ?

I was thinking about adding all my page inside a DIV to create a 100% width so it will always fit the browser, but to this to work, do i also have to change all the div's inside to percentages instead of pixels, and change the position to relative ?

edbr
08-05-2008, 06:46 AM
if you have a page wrapper to hold your page, divs inside become child divs within it.
no they dont have to be percentages. images wont resize

Chapo
08-06-2008, 04:50 AM
OK, that was a lot of help...so, if an image can't resize, then it means that everything will resize and fit the browser but not the image ? Is there a way to fix this problem, so the image will also resize along with the divs as childs ?

rattlsnak
08-06-2008, 04:56 AM
Cant answer your question, but this is exactly why you shouldnt build a page over the web standard 1024 width. I usually build mine @ 900-950. Keep in mind, it's usually us, web geeks, that have the big/widescreens, not the general user!

edbr
08-06-2008, 05:02 AM
there is some talk of scalable images but not supported very well it seems. would be useful if it did

Chapo
08-06-2008, 05:08 AM
Thanx.... but yeh its true... we geeks have bigger wide-screens... but the cliente wanted the width anyway....so, let it be his problem then.... than edbr and rattlsnak