We'd like to remind Forumites to please avoid political debate on the Forum... Read More »
We're aware that some users are experiencing technical issues which the team are working to resolve. Thank you for your patience.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
Couple of quick HTML questions..
Options

scheming_gypsy
Posts: 18,410 Forumite
in Techie Stuff
whacking up a basic website for a girl at work and it looks fine and dandy for me BUT when she tried to view it it was all out of shape. I'm running at 1024x768 and she's running at 800x600, so will other people trying to view it.
Is there a bit of code that will auto resize to fit the screen as i've never had a problem with other sites being out of sync.
If not has anybody got the code for a popup box where i can say it's best run at 1024x768?
cheersio
Is there a bit of code that will auto resize to fit the screen as i've never had a problem with other sites being out of sync.
If not has anybody got the code for a popup box where i can say it's best run at 1024x768?
cheersio
0
Comments
-
Er if you design a site do it in a percentage not in pixels and use frames
so do it in 95% of screen resolution in the main frame the insert tables into that
main frame an nowt should move.
I design stuff in 95% of 800x600 frame then it looks ok.
help here http://www.smartwebby.com/web_site_design/advanced_web_design.asp0 -
as mr skint says - t'is the best way. however. depending on circumstances it's sometimes useful to have specific versions of pages / sites etc for the different resolutions - see here (http://www.pageresource.com/jscript/jscreen.htm) for a simple javascript that will detect the resolution and then direct the viewer to the appropriate page etc"Don't go around saying the world owes you a living. The world owes you nothing. It was here first." (Mark Twain)0
-
For 800x600 the maximum page width is 778px, but I'd always go with about 770px to be safe.
If you do decide to use javascript to detect resolution, like mentioned above, make sure you include a <noscript> element incase users have javascript disabled.
You may also want to consider, if you have a page finding the resolution, then redirecting you to a specific page for that resolution. Search engines such as google don't like this, and may not add you to their engine, as you have to be able to get back to their search results within one click.
One solution is to use percentage based design. Or you could grab the screen width using javascript, and if using a scripting language like PHP or .Net, store the width in viewstate or as a session variable, and dynamically load a specific stylesheet dependent on the resolution."Boonowa tweepi, ha, ha."0 -
cheers folks i'll give them a whirl.0
-
although looking at them i'll try and give them a whirl0
-
smcicr wrote:as mr skint says - t'is the best way. however. depending on circumstances it's sometimes useful to have specific versions of pages / sites etc for the different resolutions - see here (http://www.pageresource.com/jscript/jscreen.htm) for a simple javascript that will detect the resolution and then direct the viewer to the appropriate page etc
think this might be the one i want, the table one is driving me scatty.0 -
Mr_Skint wrote:Er if you design a site do it in a percentage not in pixels and use frames
so do it in 95% of screen resolution in the main frame the insert tables into that
main frame an nowt should move.
I design stuff in 95% of 800x600 frame then it looks ok.
help here http://www.smartwebby.com/web_site_design/advanced_web_design.asp
http://www.html-faq.com/htmlframes/?framesareevil0 -
F1F1 wrote:Frames are a usually a bad idea. There can be problems including bookmarking the page <each frame has a different URL>, problems printing the page, search engines can also have problems with framed websites.
http://www.html-faq.com/htmlframes/?framesareevil
Er not if you put the Meta data in the Header Frame.0 -
Re: problems with frames -Mr_Skint wrote:Er not if you put the Meta data in the Header Frame.
I'd be interested to know what the situation is like now. Have the printing problems been resolved as well? Usually in the past if you hit the print button <as most punters do> it would annoyingly print out the separate frames on separate sheets of paper. Do you have a URL for one of your framed sites and I'll be happy to watch and learn.
0 -
Most of the Framed issues were cleared up, as I was taught where to put
the TAGS and Anchors within the frame, its just better if you make the main frame about 95% or so of the visible screen size, the big problem isnt with the frames
themselves it the positioning of tables within the frame and what percentage of that table is, and of course the dreaded Browser itself, I mean you might make a website and view it in your Browsers to check it using, Opera, Netscape, IE, FireFox etc and then test it at different screen resolutions and it may look Brilliant until a user viewing your site may have chaged there Browser settings and then your well crafted website looks rubbish.0
This discussion has been closed.
Confirm your email address to Create Threads and Reply

Categories
- All Categories
- 350.7K Banking & Borrowing
- 253K Reduce Debt & Boost Income
- 453.4K Spending & Discounts
- 243.7K Work, Benefits & Business
- 598.4K Mortgages, Homes & Bills
- 176.8K Life & Family
- 256.8K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.1K Discuss & Feedback
- 37.6K Read-Only Boards