Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
REsizing the screen based on resolution?
Old 03-12-2003, 10:04 PM REsizing the screen based on resolution?
Junior Talker

Posts: 2
Trades: 0
Question... is there anyway to read the browser size of a user and resize the screen so that the website fits uniformyl on the users screen? Anythign leading me in the right directly would be a help, thanks.
Pplace is offline
Reply With Quote
View Public Profile Visit Pplace's homepage!
 
 
Register now for full access!
Old 03-13-2003, 04:06 PM
david's Avatar
King Spam Talker

Posts: 1,314
Location: Glasgow, UK
Trades: 0
There are two things you can do:

Firstly, you could put your website in tables of width 100%, which will always expand to fit any screen size. You can come across problems with large spaces between images and long lines of text this way, but its the most common and easiest way to resize your site to browser size.

The second way is to use JavaScript to detect the browser size and then redirect the user to a customized version of the site. Here is a script which will do that:
http://www.codebelly.com/javascript/accessbysize.html
The problem with these type of scripts is that they require JavaScript to be turned on in the user's browser, and you will need to make two or more versions of your site.
__________________

Please login or register to view this content. Registration is FREE
- Everything a webmaster needs - for free

Please login or register to view this content. Registration is FREE
- Free web hosts reviewed and rated

Please login or register to view this content. Registration is FREE
- Impartial hosting directory - Add your host today for FREE
david is offline
Reply With Quote
View Public Profile
 
Old 03-13-2003, 06:27 PM About the big table
Junior Talker

Posts: 2
Trades: 0
My site, http://smellthat.stinkingfart.com has frames so i dont' think the table idea woudl work would it? thanks for the javascript thouhg, may use that
Pplace is offline
Reply With Quote
View Public Profile Visit Pplace's homepage!
 
Old 03-13-2003, 06:57 PM
Lippy's Avatar
LipWeb.Net

Posts: 270
Trades: 0
it could, you would just need to set the frame total size across to be 100%, though its a bit trickier.
__________________

Please login or register to view this content. Registration is FREE
"Less Lip More Service"
Providing Quality Hosting at Fair Prices
AIM: LipWebNet MSN: daniel[at]lipweb.net Yahoo: LipWebNet ICQ: 265771633
Lippy is offline
Reply With Quote
View Public Profile Visit Lippy's homepage!
 
Reply     « Reply to REsizing the screen based on resolution?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19204 seconds with 12 queries