Forum Moderators: open

Message Too Old, No Replies

Help - Screen Resolution Detection Code?

Site designed for 8x6 looks terrible in 1024x768!

         

ddesign

10:44 am on Dec 15, 2003 (gmt 0)

10+ Year Member



I built a web site that looks great in an 800x600 screen resolution, but looks terrible in a larger resolution, like 1024x768. Is there a code that will detect which screen res. a user is viewing the site on so that the web page adjusts accordingly, or am I stuck with building 5 web sites in order to accommodate everyone!? p.s.- I already tried a code that automatically made the screen jump to 8x6, I, and the client, hated it, so unfortunetly that one won't work. Any other ideas?

PCInk

10:53 am on Dec 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Can't you use a fluid layout (using percentages of screen size, where possible) instead of a fixed layout?

percentages

10:57 am on Dec 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I recommend doing as PCInk suggested.

But if for some reason this is not practical you can detect screen resolution using JavaScript.

[google.com...]

Will help you on your way.