width limit

R

royhalevy

I have a site sitting now on
http://dev.clipz.net/
It has css definitions so it stretches to 100% screen width no matter
in what user screen resolution. I need a script that shrinks it to
790px now (and to keep everything else the same)
anyone can help?
Thanks
Roy
 
P

Peter Michaux

Hi Roy,

I have a site sitting now onhttp://dev.clipz.net/
It has css definitions so it stretches to 100% screen width no matter
in what user screen resolution. I need a script that shrinks it to
790px now (and to keep everything else the same)
anyone can help?
Thanks
Roy

If you want to have a maximum width then you can use the following
(but not in IE6)

max-width:790px;

If you want to use JavaScript to have a maximum width in IE6 then you
have to start updating the width of the element in the page every time
the user resizes the window. This is not a fun activity and why css
designers usually just go with a fixed width or percentage width and
don't worry about a max width. That is what I would do anyway.

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top