View Full Version : Calling all coders
Senator
06-14-2004, 02:43 PM
Ok, usually I have all the answers, even if I have to make some up, but I don't on this one.
A friend is making a dinky website using frontpage. He is making it with his 1024x768 resolution. Some who view the page have it too small as they use 1280x1024.
Is there some sort of html code that can make a webpage auutomatically conform to the resolution each user has on his/her desktop?
Gracias.
Simms
06-14-2004, 02:50 PM
Any time there's an element that uses a height or width attribute, use percentages instead of pixels.
For instance, if the main table is set to width="1024px", then have him change it to width="90%". Then the table will readjust to 90% of the width of any visitor's browser.
If he switches to percentages, be sure to do it site-wide. Mixing % and px when laying out pages doesn't usually mix well, in my experience.
Simms
06-14-2004, 02:57 PM
Also keep in mind that he will lose a lot of control over how his page will look, because table cells or layers won't be a static size.
Simms
06-14-2004, 02:58 PM
Double dola...
There is another way to do it better, using a combination of variable CSS style sheets and javascript, but that's beyond me. :)
Senator
06-14-2004, 02:58 PM
I need to put Simms on the payroll he has helped me so much.
Is there a default in the frontpage html where this can be changed?
Coffee Warlord
06-14-2004, 02:58 PM
What Simms said.
And for the love of god, talk him out of using FrontPage. :)
Simms
06-14-2004, 03:00 PM
And for the love of god, talk him out of using FrontPage. :)
Hell yes. Can't believe I overlooked that part. :)
Simms
06-14-2004, 03:04 PM
I need to put Simms on the payroll he has helped me so much.
Is there a default in the frontpage html where this can be changed?'
It's been a looooooooong time since I've used FrontPage, so I have no idea what the current interface looks like.
I can't even remember what the *old* interface looked like.
Senator
06-14-2004, 03:05 PM
No way. I am shocked he owns a computer, much less is making a webpage. Frontpage is the most complicated app he will ever use. Anything beyond that another level of conciousness he will never obtain.
RendeR
06-14-2004, 03:44 PM
ok, you have a few problems with this situation:
#1 (and the biggest) THROW AWAY FORNTPAGE IT CREATES SHIT CODE AND DOESN"T WORK WORTH CRAP!
#2 to resolve the wide ranging resolution problem you need to learn to code tables and use spacer graphics to set the minimum size you want, then allow the browser to open it up and stretch it out as you want it to.
example:
http://www.majecc.net/temp/about.shtml
it stretches to fit whatever resolution.
vBulletin v3.6.0, Copyright ©2000-2025, Jelsoft Enterprises Ltd.