different screen size problems

This is a discussion on "different screen size problems" within the Web Page Design section. This forum, and the thread "different screen size problems are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 25th, 2008, 15:41
Junior Member
Join Date: Dec 2007
Location: Minnesota
Age: 25
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
different screen size problems

Hi.

I made a pretty simple site just using HTML.
I made a background image to use and also a few other little graphics.
When I check the site on a few screens its fine, but when i checked it on a few other screens,, the background image is repeating at the right hand conrner and also at the bottom, plus the other grapichs which are aligned to the center, suddenly appear close to the right hand corner and the buttons in the middle go to the left side.

Is this just a screen resolution problem?.
Im wondering how to fix this.

Im not sure which way to go to acctually fix it.
Reply With Quote

  #2 (permalink)  
Old Feb 25th, 2008, 16:08
Jack Franklin's Avatar
Resources Administrator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,268
Blog Entries: 7
Thanks: 10
Thanked 4 Times in 4 Posts
Re: different screen size problems

It could be a browser specific problem. Could you post the site?
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
Reply With Quote
  #3 (permalink)  
Old Feb 26th, 2008, 18:57
Junior Member
Join Date: Dec 2007
Location: Minnesota
Age: 25
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Re: different screen size problems

Got it fixed.
I tried it in several browers and it was fine on the normal resolution setting.,
The other screen was set to highest resolution. But i made the background image larger to make up for that and its fine now.
Reply With Quote
  #4 (permalink)  
Old Mar 8th, 2008, 14:54
Reputable Member
Join Date: Dec 2005
Location: U.S.A.
Posts: 147
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to ScottR Send a message via Skype™ to ScottR
Re: different screen size problems

What happens if someone with even a high resolution visits the site??
Reply With Quote
  #5 (permalink)  
Old Mar 8th, 2008, 15:26
SuperMember

SuperMember
Join Date: Aug 2003
Location: Castle Rock, CO
Age: 36
Posts: 164
Thanks: 0
Thanked 0 Times in 0 Posts
Re: different screen size problems

Background images were made to repeat. That is until CSS came along. You might be using something like
Code: Select all
<body background="images/background.jpg">
But you should be using something like
Code: Select all
<body style="background: url('images/background.jpg') no-repeat;">
This will help to prevent the image from repeating. And don't rely on those resolutions. What happens if someone has their history or favorites opened? That will take area from your "real estate". And what happens if you think that the resolution is 1920X1200? But the user makes the browsers open 1280X768? You won't get that in your scripts unfortunately.

Never rely on the user to have their browser maximized as well
Reply With Quote
  #6 (permalink)  
Old Mar 8th, 2008, 15:39
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: different screen size problems

A background image x pixels wide cannot fill a screen whose horizontal resolution is greater than x pixels. If repeat is on, it will repeat, and if repeat is off, you will get plain colored borders. CSS cannot stretch a background image (afaik).

You found the only simple way I know to fix the problem. Another possibility is to center the image and not repeat it, which will at least leave you with something tidier looking in wide resolutions.

It is actually possible to size a background image dynamically, but it's so hard in practice I don't think anyone does it. Basically you have to use a pseudo-background, i.e. put the image in the html, use the browser to resize it and use the z-axis to put the content on top of it. I've never done it, so I don't know if you could use server-side scripting or whether you'd have to use javascript. Also you'd either have to have an image that looked good stretched, or else resize it vertically in proportion to horizontal stretch. Not to mention, browser resizing tends to make an image look terrible.

Actually, with a fairly complex server-side program, you could regenerate the image. Like in PHP, you could read the image file into a temporary table and then regenerate it to fit the precise width of the screen using the gd library, and it should look pretty good. I just can't imagine anyone actually doing it.
Reply With Quote
  #7 (permalink)  
Old Mar 8th, 2008, 21:54
SuperMember

SuperMember
Join Date: Aug 2003
Location: Castle Rock, CO
Age: 36
Posts: 164
Thanks: 0
Thanked 0 Times in 0 Posts
Re: different screen size problems

Background Object to Fit Screen might help you out some. I know the post is old but I tried it out back then. And some of the links on her post might even lead to a few other better ideas as well if needed.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Screen Res Help Please diane1984 Web Page Design 6 May 4th, 2007 23:15
Screen resoloution problems on my website. Marc Web Page Design 6 Apr 13th, 2007 23:42
Screen Shot moojoo Webforumz Cafe 16 Jan 26th, 2007 14:27
Flash screen problems bejamshi Flash & Multimedia Forum 2 Oct 16th, 2006 02:34
text size problems Ice288 Web Page Design 3 Jul 18th, 2005 11:05


All times are GMT. The time now is 03:35.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43