Forum Moderators: not2easy

Message Too Old, No Replies

tips for making site look good on screen resolutions?

I want a site Im working on to look nice on all different screens

         

jbercute1007

1:57 pm on Aug 22, 2008 (gmt 0)

10+ Year Member



What is the best way to achieve a good look via CSS or html on all different kinds of screens and browsers? The site I am working on is very simple just HTML, CSS and a little JavaScript but my client is saying he doesnt like how the site looks different on his PC then his MAC, etc.
Is the best idea to just style for the most popular resolution and go with that? Im new to all this and would appreciate any tips. Thank you!

adwatson

9:03 pm on Aug 25, 2008 (gmt 0)

10+ Year Member



Probably the easiest thing is to designer for the smallest common denominator resolution - i.e. 1024 * 768. Then center the page horizontally in the browser window to help it look better at higher resolutions.

The other option is to do a dynamic/fluid layout, there's lots of tutorials to help with that. Then it'll stretch to fill wider screens.

swa66

7:56 am on Aug 26, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do not assume people on high res screens will even consider running a web browser full-screen. The reason to get high res screens is to fit things next to one another, not on top of each-other.

Fluid is good, but limit the maximum width so lines of text remain readable (there is a reason newspapers use columns instead of lines running all the way). As far as columns go, it's just that with the limited viewport vertically, columns don't work well for on-screen reading. So limiting things to a 800px wide screen does make sense.

alt131

10:42 am on Aug 26, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



For me would help if I had more information about what the client "doesn't like".

Leading on from the previous posts, I keep in mind:
# Web is not print. Design and code for an equivalent user experience, not equal user experience. If the display is true to design and functions - what's not to like ;)
# Mac is not PC. They display differently. They were designed that way.
# Be thankful the client doesn't surf on their cell phone.(But a demonstration can convert a client with a limited budget to the first two ideas.)

I consider there are an infinite number of variables that affect viewport size - of which screen resolution is just one. So design (then code) for fluid/flexible/elastic, or floats so extra content can float "up" if there is space in the viewport, or if the client must, a centred fixed-width suitable for the demograph and copy.

However, which are appropriate depends on the site type and purpose so these are decisions should be made at the design stage as they impact on the final "look". For an existing site where the design may already have been signed off, your options may be more limited. Compromises might be:
# If fixed measurements, convert to flexible (px to ems/%) to gain a little stretch
# Centre it with flexible margins (don't leave it positioned at top left) to avoid it appearing to be dangle in space

If the problem is too much "blank" space, guide the eye and prevent the centred content looking like a deserted island by:
# laying it over a background that will expand to fill the otherwise "blank space" at higher resolutions
# designing a flexible header and/or footer that will expand the full screen width (Sometimes as simple as a few pxs of border on the body, could be an appropriate graphic etc)
# Balancing proportions by pushing the content down the page a bit

... looking forward to other peoples techniques ...

Darkelve

12:19 pm on Aug 26, 2008 (gmt 0)

10+ Year Member



People might call me old-fashioned, but in my opinion - IF you are going to design for a minimum resolution anyway- it still makes sense to design for a minimum resolution of 800*600.

People have bigger screens nowadays... but nowadays people ALSO have EEE's (800×480), iPhones (even lower), etc. ... at least try to fit the most important content inside the first 800x600 pixels of the browser's viewport. PDA's etc. won't be able to fit this either, but they (some at least) will/can throw away the CSS, or you can specify a 'mobile' style sheet.

There are a number of ways to get the most out of your space, for example centering your template and applying a large margin to the left and right (a lot of blogs use this one). There are a number of ways to make the best use of your space however.

But in the end, your client is 'always right' (even when he's way off). You can try to convince him of your point of view (and here, showing is always better than trying to explain) but if you want as close a match as possible, the easiest way is to design using pixel units in your CSS and testing multiple browser/OS combinations when developing. Even then, it won't be a 100% match... like already said, OSX isn't Windows isn't Linux isn't the-OS-on-your-PDA... and not everyone uses the same browser, window size, fonts, ...

If you want to take pride in creating good and clean code, pick up a copy of (e.g.) BulletProof Web Design. That guy explains themes like this one really well. (when it comes to 'design', the CSS Zen Garden book is pretty good too)

It takes a lot of time to really 'get' CSS for design, but if you're dealing with websites a lot it's definitely worth it. In the long run, it can really pay off. For example, I had to import a website into a CMS system last week, with a totally different template, and I could literally copy the code for the content. Saves a heck of a lot of work.

[edited by: Darkelve at 12:25 pm (utc) on Aug. 26, 2008]