Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 3rd, 2003, 05:30 PM
Registered User
 
Join Date: Sep 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Fonts and Browser window size

Couple things ... if you don't mind me picking your brains :)

1) Is there a way to force the font size? When my page is viewed on a lower resolution (say 1024x768 ... I use and set it all up at 1600x1200) the fonts are proportionally larger and cover over a pic I have in the bottom right corner of the page background. I look at it on mine, and the text stops a couple lines above the pic. Can I make it so the text appears the same no matter what the far end resolution/appearance settings are?

2) Is there a way to force the browser window size? I don't care about the height of the brower window, but I want to force the width. Can that be done so that it takes into account whether the visitor has a pane open (ie favorites, search, history etc) in their browser window?

thx again,
Al

-------------------------------------

What comes around ... goes around.
 
Old October 3rd, 2003, 05:52 PM
Authorized User
 
Join Date: Jun 2003
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Default

For the font size you could use css style
and as for the width create table using 100% or just make them fixed size 800
<table width="800"> or <table width="100%">
 
Old October 4th, 2003, 07:53 PM
Registered User
 
Join Date: Sep 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

CSS did the trick for the font thing. Thx much!

I was wanting to force the size of the visitor's browser. I already have that table stuff in my code. So for example the visitor's browser is smaller than the width of my page (959 pixels), I want to be able to resize the browser window itself so that it matches the width of my page.

-------------------------------------

What comes around ... goes around.
 
Old October 5th, 2003, 04:28 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Personally, I think you should design your site just the other way around. You should try to make a site that is able to adapt itself to the size of your visitor's browser, and not try to make the browser fit your site.

Imagine, for example, a user with an 800 x 600 screen. I realize they are getting less and less common, but they are still around. It's perfectly possible to use some JavaScript to resize the browser to fit your 959 pixels design.
However, the screen of your visitor is just capable of displaying 800 pixels at the time. This means that they'll have to move the browser window around to be able to see all contents of the site.

It could even be worse. If you change both the height and the width of the browser, so they are bigger than the screen, your visitor might loose the ability to close, move or change the browser window using resize handles, the menu bar or close buttons.

Personally, when I visit a site that does this kind of tricks, I close the window using a keyboard short-cut and never come back.

Of course, your target audience, or application may differ, so these problems do no arise. However, IMO, you should always keep your user and the usability of the site in mind: what are the consequences of this design for my visitors? What if they have different browsers, different OS, etc? What if they have a low-res system? These are important questions that will definitely influence the usefulness and popularity of the site you're designing.

Cheers,

Imar




---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old October 5th, 2003, 06:42 AM
Registered User
 
Join Date: Sep 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You raise a very convincing argument. I had overlooked/forgotten about the resizing off the screen thing. The desire to resize etc was more cosmetic in nature than anything else.

Thanks for the reality check,
Al

-------------------------------------

What comes around ... goes around.
 
Old October 5th, 2003, 11:07 AM
Authorized User
 
Join Date: Jul 2003
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to chabrown Send a message via MSN to chabrown
Default

I have to very strongly second what Imar said before. Your visitors are not going to adjust to you, you have to adjust to them. And unless you have a very specific target audience, such as in an Intranet environment, you have to make your web page as flexible as possible.

When I designed The Cooking Place for the book, I purposely built a lot of elasticity into the tables in order to adjust to a number of browser situations. I also advise the reader to test it under a variety of circumstances and sizes in Dreamweaver and in various browsers.

This is one of the reasons more and more designers are turning to Flash to create the user interface. You have a lot more control over the finished product from HTML.

Charles E. Brown
Author - Beginning Dreamweaver MX, Fireworks MX - Zero to Hero
Contributor - Macromedia Studio MX Bible





Similar Threads
Thread Thread Starter Forum Replies Last Post
Browser window: Specifying the size and location? asearle HTML Code Clinic 2 November 22nd, 2007 08:50 AM
Browser Max size AristotleYu ASP.NET 2.0 Basics 2 October 31st, 2006 01:03 PM
Starting a fixed size browser window Loz Javascript How-To 12 April 18th, 2006 10:43 AM
Browser Size and Toolbar settings wirerider ASP.NET 2.0 Basics 1 January 25th, 2006 03:08 PM
Launch default browser in a new browser window haiying Beginning VB 6 1 August 30th, 2005 05:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.