Reply
Screen Resolution Code?
Old 08-14-2005, 08:36 PM Screen Resolution Code?
Tablemaster's Avatar
Novice Talker

Posts: 12
Location: FL
Hi friends.

Is there html code that can be used to change the size of my web page(800x600, 1024x768 etc.)based on the screen resolution settings of visitors?

~Peace.
__________________
Affordable Website Design
Tablemaster is offline
Reply With Quote
View Public Profile Visit Tablemaster's homepage!
 
When You Register, These Ads Go Away!
Old 08-15-2005, 03:52 AM
chrishirst's Avatar
Super Moderator

Posts: 16,477
Location: Blackpool. UK
No and sort of,

Specify your page element widths in % and it will flow to fit the browser viewport.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System | Bits & Bobs
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-15-2005, 06:27 AM
asm
Extreme Talker

Posts: 217
Location: UK.Lancashire(true)
you can probably specify the width of the page dynamically with JavaScript. I would google it and see if there is one that you can use.
asm is offline
Reply With Quote
View Public Profile Visit asm's homepage!
 
Old 08-15-2005, 07:20 AM
Harvey's Avatar
Super Spam Talker

Posts: 901
Name: Harvey C
Location: Brighton, UK
Personally, I would make a site that's compatible with all reasonable screen res - ie. as chrishirst said, use % widths.

To do this with tables, make the width of the table whatever % of the screen you want it to fill. Slice up any images you might have as headers, leaving space in between each one.

I suggest you take a look at w3schools or something, as you don't seem too familiar with these. Would also tell you how to do it with straight CSS, but I have no idea!

If you want to stay in the dark ages and do it the long-winded, inconvenient way, I'd recommend javascript. Try googling for "javascript", and then on the main sites, search for "resolution". However, this will not directly change the "size of your your webpage" as requested, but redirect the user to a differently sized page/directory. I don't recommend this, as it'll mean having to redesign your site for several different resolutions.

Edit: Has anybody else noticed the irony of this post? You call yourself tablemaster, yet you've missed out on the easiest way to solve this problems - tables (or css...)
__________________
Buy wii fit|Gift ideas

Last edited by Harvey : 08-15-2005 at 07:23 AM.
Harvey is offline
Reply With Quote
View Public Profile
 
Old 08-15-2005, 11:30 AM
Tablemaster's Avatar
Novice Talker

Posts: 12
Location: FL
Lol........My problem is with the height & width of my tubes......

<table width="90%" background="http://dreamer.serverextremehosting.com/FONDOS/Back12.gif">

<tr><td><img width="20%" height="100%" src="http://dreamer.serverextremehosting.com/GradTubes/09a.jpg">

<td align="center">

<font sise=5 color=gold>Why My Tubes Dissapear?</font>

<td><img width="20%" height="100%" src="http://dreamer.serverextremehosting.com/GradTubes/09a.jpg">

<tr></td></table>

Any time that I try to used the code above....my tube disappear!...

~ Peace.
__________________
Affordable Website Design

Last edited by Tablemaster : 08-16-2005 at 11:36 AM.
Tablemaster is offline
Reply With Quote
View Public Profile Visit Tablemaster's homepage!
 
Reply     « Reply to Screen Resolution Code?
 

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

vB 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.13445 seconds with 12 queries