Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
LinkBack Thread Tools
Old 08-26-2007, 06:10 PM   #1 (permalink)
Registered User
 
Join Date: Mar 2006
Location: Australia
Posts: 152
OS: Windows 7 RTM

My System

Resolution Independance??

Hey all,

im currently creating a website for my dads company and its going pretty good. Im only a beginner and can really only create web pages in design view in dreamweaver.

Ive come across one problem though...
Since im creating the webpage in a 1024x768 resolution, if someone else goes to view it with a higher resolution, say 1280x800, then theres this huge white gap down the side.
Ive read that when designing you should create your graphics with every resolution in mind, but i didnt even think of that, and dont really want to go and create them all again.

So i heard of this javascript code that you can use which basically zooms your page according to a set resolution that you specify.

This is the code:

window.onload = check_width

function check_width() {
var correctwidth=1024;
// You can personalize "correctwidth" according to your layout.

if (screen.width!=correctwidth) {
document.body.style.zoom = screen.width / correctwidth;
}
}

however i dont know where to insert it :P and even when i think ive done it right it still doesnt work.

If anyone has any ideas could you help me out.
Better yet if theres just a function in dreamweaver that enables this that would be even better.

Thanks
__________________
Well... At least when computers stuff up thier consistent about it...
Timmy_j is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 08-27-2007, 03:12 PM   #2 (permalink)
Design Team Member
 
Redcore's Avatar
 
Join Date: Aug 2007
Location: Jamestown, CA
Posts: 717
OS: Linux Mint 7

My System

Re: Resolution Independance??

I always design websites with 800x600 resolution and center it if the design is inclusive (meaning it wouldn't look right to have it left-justified).

Sounds like you should be changing the color of your background though...right click on your page (in design view) and go to "Page Properties..." at the bottom. It will start off in the "Appearance" tab - where you can define your background color. So that big white gap will be a big colored gap that better matches the color of your layout.

As far as this code you posted, can you provide the link where you got it from? Then I'll test it out.
Redcore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-27-2007, 11:51 PM   #3 (permalink)
Tech, Design Team
 
devil lady's Avatar
 
Join Date: Sep 2005
Location: Tasmania, Australia
Posts: 962
OS: XP SP2

My System

Re: Resolution Independance??

This may help http://smartwebby.com/web_site_desig...esolutions.asp It's often better to work in percentages, they will stretch or shrink to fit any resolution.
devil lady is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-28-2007, 07:19 AM   #4 (permalink)
Registered User
 
Join Date: Mar 2006
Location: Australia
Posts: 152
OS: Windows 7 RTM

My System

Re: Resolution Independance??

K well heres the link for the code that i have:

http://digilander.libero.it/indipendent_res/faq.htm

As for the 800x600 resolution and using a fill colour for the background,
well that isnt really an option for me as i have designed the background image myself, and therefore only fits a 1024x768 screen size. Using a fill colour would mess up the background and really doesnt overcome the issue that the page has been resized.

With the smartwebby.com site, i understand that by setting the width as 100% then that overcomes the problem of screen size as it resizes the table to fit. So if i were to create a table that was the size of my page, and just fit everything inside it, and set it to 100% width, would this overcome the problem??
If so, im not really code-smart, so could someone tell me what the code would be and where to put it :P
(I create pages in the design view >_<)

thanks for the help so far
Tim
__________________
Well... At least when computers stuff up thier consistent about it...
Timmy_j is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-28-2007, 01:05 PM   #5 (permalink)
Retired
 
gamerman0203's Avatar
 
Join Date: Oct 2005
Location: Grand Rapids, MI
Posts: 2,144
OS: XP MCE, Ubuntu Gutsy

My System

Re: Resolution Independance??

deffinatley follow redcore's suggestion. Design for 800x600 and that will allow nearly all visitors to see it. Centering the whole site will also be an improvement.
gamerman0203 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-28-2007, 02:34 PM   #6 (permalink)
Design Team Member
 
Redcore's Avatar
 
Join Date: Aug 2007
Location: Jamestown, CA
Posts: 717
OS: Linux Mint 7

My System

Re: Resolution Independance??

I've been messing around with this JS for awhile now and I'm not really a fan of it.

Just looking at the example page it doesn't expand the layout to my resolution (1280x1024). Anyways, if someone with 800x600 resolution is on your site, it's not going to zoom OUT so they can see the page. I don't think it's a very effective way to get where you want to go.

Web design (ESPECIALLY at first) is all about learning the hard way. I've rebuilt some sites half a dozen times because I found a more cleaner/effective way to do things. I still rebuild sites sometimes because I'm not happy with how it's working out. Since this is going to represent your dad's company, it's probably a good idea to optimize it to look as good as you can get it. I had to learn the resolution rule the hard way too.

If this has just been designed in DW, it won't take long at all to get it down to 800 width (you don't have to worry as much about the length because obviously the user can simply scroll down - depending on the application). As a web developer, sometimes I'm hired to take over web sites that are old and ineffective. I run into this kinda stuff quite a bit (various special tricks with JS) and it's typically the first thing I rip out unless it actually works perfectly on every browser and serves a useful purpose.

edit: you can post the pages you're working on here and we can help you optimize it.

Last edited by Redcore; 08-28-2007 at 02:37 PM.
Redcore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-30-2007, 05:26 PM   #7 (permalink)
Registered User
 
Join Date: Mar 2006
Location: Australia
Posts: 152
OS: Windows 7 RTM

My System

Re: Resolution Independance??

OKay then, i knew that javascript didnt work too well :P

So you reckon resize everything for an 800x600 resolution instead??
and then just center eveything??

that actually sounds like a good idea, but what about the background problem??
wont there be white gaps down the sides??

thanks
__________________
Well... At least when computers stuff up thier consistent about it...
Timmy_j is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-30-2007, 06:06 PM   #8 (permalink)
Design Team Member
 
Redcore's Avatar
 
Join Date: Aug 2007
Location: Jamestown, CA
Posts: 717
OS: Linux Mint 7

My System

Re: Resolution Independance??

If you could post your design, I could give you the best advice for your problem. A background color is normally all you need, but I'd like to take a look and see if you need to make a background image or something that would blend in better.
Redcore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-30-2007, 09:15 PM   #9 (permalink)
Registered User
 
Join Date: Mar 2006
Location: Australia
Posts: 152
OS: Windows 7 RTM

My System

Re: Resolution Independance??

K well if u wanna check out the website the url is:

www.lockandsecurity.com.au

Its not finished yet by the way:P

And if you want the seperate files ie background and other images let us know and i'll send them to you.
__________________
Well... At least when computers stuff up thier consistent about it...
Timmy_j is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-31-2007, 02:12 PM   #10 (permalink)
Design Team Member
 
Redcore's Avatar
 
Join Date: Aug 2007
Location: Jamestown, CA
Posts: 717
OS: Linux Mint 7

My System

Re: Resolution Independance??

That's definitely a unique background and creates a bit of challenge in this case. The best way to go about it is finish out the rest of the image rather than cutting it off.
Redcore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-31-2007, 07:20 PM   #11 (permalink)
Registered User
 
Join Date: Mar 2006
Location: Australia
Posts: 152
OS: Windows 7 RTM

My System

Re: Resolution Independance??

Okay, so just extend the background, and so when it is viewed in a higer resolution it will just show the extended background rather that the white space. But how does that overcome everything not being centered then?? Like if i put everything in a large table, and then just centered it, in a higher resolution it would center the table, but then the banner and logos etc would be on the background instead of the white area....
:S sorry if that seemed confusing :P
__________________
Well... At least when computers stuff up thier consistent about it...
Timmy_j is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-01-2007, 03:34 PM   #12 (permalink)
Design Team Member
 
Redcore's Avatar
 
Join Date: Aug 2007
Location: Jamestown, CA
Posts: 717
OS: Linux Mint 7

My System

Re: Resolution Independance??

In this case you can't center it unless you get rid of that background image.
Redcore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-01-2007, 06:36 PM   #13 (permalink)
Registered User
 
Join Date: Mar 2006
Location: Australia
Posts: 152
OS: Windows 7 RTM

My System

Re: Resolution Independance??

Hmmm, well what if i just extend the background for a 1280x1024 resolution, so that way if someone with that resolution views it the page layout will stay the same, but at least the white space will be gone...
Any other smaller resolutions will just see the page as it should be..
__________________
Well... At least when computers stuff up thier consistent about it...
Timmy_j is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-02-2007, 02:36 PM   #14 (permalink)
Design Team Member
 
Redcore's Avatar
 
Join Date: Aug 2007
Location: Jamestown, CA
Posts: 717
OS: Linux Mint 7

My System

Re: Resolution Independance??

I guess you didn't understand what I meant when I said "The best way to go about it is finish out the rest of the image rather than cutting it off."

I meant expand the image towhere the circle is closed - anything beyond that circle (in the blue part) you can just set the background to that same blue that way you don't have to make the background any bigger than it needs to be.
Redcore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-02-2007, 06:20 PM   #15 (permalink)
Registered User
 
Join Date: Mar 2006
Location: Australia
Posts: 152
OS: Windows 7 RTM

My System

Re: Resolution Independance??

Ohhh k, yeah i understand now :P thats a good idea, Ill have to start working on that soon :)
Thanks

So other than the hard way are there solutions to automatically fix the scaling issue??
ie html code, options in dreamweaver??
__________________
Well... At least when computers stuff up thier consistent about it...
Timmy_j is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-02-2007, 10:45 PM   #16 (permalink)
Design Team Member
 
Redcore's Avatar
 
Join Date: Aug 2007
Location: Jamestown, CA
Posts: 717
OS: Linux Mint 7

My System

Re: Resolution Independance??

If there was a reliable way that didn't skew things and worked on every browser, I probably would have been using it more regularly by now :P
Redcore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-03-2007, 01:47 AM   #17 (permalink)
Registered User
 
Join Date: Mar 2006
Location: Australia
Posts: 152
OS: Windows 7 RTM

My System

Re: Resolution Independance??

lol, okay, well im sure someone will develop something eventually, but i guess its make do with what you have atm :P
__________________
Well... At least when computers stuff up thier consistent about it...
Timmy_j is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-03-2007, 02:30 PM   #18 (permalink)
Design Team Member
 
Redcore's Avatar
 
Join Date: Aug 2007
Location: Jamestown, CA
Posts: 717
OS: Linux Mint 7

My System

Re: Resolution Independance??

AJAX probably does this - but right now it's still a growing language although it's popularity is growing rapidly. I've been meaning to sit down and learn it, but I've been too busy and when I'm available...I don't really feel like working anymore LOL :P
Redcore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-03-2007, 06:00 PM   #19 (permalink)
Registered User
 
Join Date: Mar 2006
Location: Australia
Posts: 152
OS: Windows 7 RTM

My System

Re: Resolution Independance??

AJAX, is it a type of browser language , like JS, and PHP??
__________________
Well... At least when computers stuff up thier consistent about it...
Timmy_j is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-04-2007, 10:45 PM   #20 (permalink)
Design Team Member
 
Redcore's Avatar
 
Join Date: Aug 2007
Location: Jamestown, CA
Posts: 717
OS: Linux Mint 7

My System

Re: Resolution Independance??

It's a hybrid between JavaScript and XML

Read more about it here:
http://en.wikipedia.org/wiki/Ajax_(programming)

Very interesting stuff - and if you have Gmail or have ever used it, you've seen how neat it can be. More and more employers/web firms are looking for PHP/MySQL developers that know AJAX as well...when it's used with PHP/MySQL, the resulting page is highly dynamic and what is known as "rich" since it can make a site so user friendly and useful/efficient.

Last edited by Redcore; 09-04-2007 at 10:49 PM.
Redcore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
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 Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 09:43 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85