View Full Version : problem with the css , help please

07-12-2008, 09:27 PM

i was working on design new style for games script called onarcade
and i want to stretch it , i mean i want to make the script width full screen

in the script one css file and i had a try with it but i failed
so u can download the script from here


and here is example for the script with the original width

and here is other example for the script after stretch it and after making the width full screen

so help me please and thanks every body

07-14-2008, 07:47 AM
to make it full screen width, set your wrap div's width to 100%. the wrap div is a div surrounding your entire body code. Depending on how your code is written and positioned, you could have more problems after doing this, but anyway its the first step. here's an examples of how this could work:

if #wrap="800px",
and there is a div inside the wrap that is floated on the right, it will float at the right edge of that 800px.

once #wrap="100%",
the div floated on the right will float on the right of the browser window, no matter what the window's size.

I think everything I said is correct, but I'm not very advanced at this, hope I helped a bit.

07-14-2008, 02:00 PM
Generally speaking, ems or %ages are better for sizing. They are much more tolerant of screen resizing.

Have a look at this. (http://nopeople.com/CSS/background_image_resize/)