|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (10 bit)
Join Date: Dec 2001
Posts: 592
|
Making site good for different resolutions
I used Frontpage to make my site, and I just now realized that I made it in 1280x1024, and it looks screwed up in other resolutions.
Is there any way to make it fit to all resolutions? I know there are some programs out there that can do this, but can I just use Frontpage? What do I do? |
|
|
|
|
|
#2 |
|
Member (13 bit)
Join Date: Jul 2000
Location: Fullerton, CA
Posts: 7,030
|
If you're using tables to layout your site, make sure to use precent widths rather than absolute. For example, if you set the width of a cell to be 80%, it will resize depending on the visitors resolution. However, if you set it to be 1,024 pixels wide, anyone will a lower resolution will have to scroll horizontally.
__________________
"A witty saying proves nothing." - Voltaire |
|
|
|
|
|
#3 |
|
Member (10 bit)
Join Date: Dec 2001
Posts: 592
|
I'm confused, how do I know about frames? How do I do the percent thing? HOWWWWWW???
|
|
|
|
|
|
#4 |
|
Member (13 bit)
Join Date: Jul 2000
Location: Fullerton, CA
Posts: 7,030
|
I don't use Front Page since it writes really bloated code, so what I would recommend is to open your HTML file in a text editor like Notepad, and check out the HTML Goodies site and take the basic primers. The best way to make good pages is by knowing the actual HTML.
http://www.htmlgoodies.com |
|
|
|
|
|
#5 |
|
Member (10 bit)
Join Date: Dec 2001
Posts: 592
|
Thanks. However, I'm on a time constraint and need to get my site up asap because I'm going out of town. If you could just tell me how to do this one thing, I promise I will learn html next week and never bother you guys again
Perhaps I could send you the html and you could tell me if there's anything that could be done?
|
|
|
|
|
|
#6 |
|
Member (5 bit)
Join Date: Apr 2002
Location: In my apartment
Posts: 31
|
This code will let you easily create a page that detects the visitor's screen resolution and automatically loads a specific page depending on which resolution is used.
Insert it in the head tags. Also remember to rename the http://www.yahoo.com URLs to the URL of your website ^head^ ^script^var width = screen.width;var res =(((!(640-width))*1)+((!(800-width))*2)+((!(1024-width))*3)+((!(1152-width))*4)+((!(1280-width))*5)+((!(1600-width))*6)); if(!(res)) res = 1;if (res=='1') {window.location='http://www.yahoo.com'}if (res=='2') {window.location='http://www.yahoo.com'}if (res=='3') {window.location='http://www.yahoo.com'}if (res!='1' && res!='2' && res!='3') {window.location='http://www.yahoo.com'}^/script^ ^/head^ Good luck! Edited by moderator to stop this whole thread from redirecting to yahoo - replace ^ with < and >. ______________ [Morpheus] Last edited by glc; 04-10-2002 at 12:54 AM. |
|
|
|
|
|
#7 |
|
Resident Slacker
Join Date: Dec 2001
Location: Suisun City, California (i know, where the hell is that?!?!?)
Posts: 2,620
|
this thread is taking me straight to yahoo.com!
__________________
Friends help you move. REAL friends help you move bodies. - me quite possibly the best book ever written... by me |
|
|
|
|
|
#8 |
|
Member (5 bit)
Join Date: Apr 2002
Location: In my apartment
Posts: 31
|
Screen Resolution
Sorry guys, the previous script seemed to forward everyone to yahoo! See the attatchment for the real code
Last edited by Morpheus; 04-10-2002 at 08:42 AM. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|