Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frames-Banner text - I don't want it resized in browsers

Status
Not open for further replies.

chris0001

Technical User
Mar 1, 2002
13
US
Frames website Using Front Page 2002

My banner frame has a .jpg logo (top, left) and text to the right that describes our association. When I view in browser and set the "View, Text Size to "largest" the logo stays the same but the text runs off the banner frame.

How can I program the text portion so that it will not adjust the font size in viewers browsers? In fact, how do I program the entire site to keep my text size and not resize to larger or smaller from their browsers?

Thanks, Chris

 
Hi mate,

You can specify the font size in pixels but no matter what you do, unless you made your text into images then the user can always override it.

Hope this helps Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Thanks Wullie & Tom for your responses. I'm quite a novice at web design and haven't devoted adequate time to keep up with all the "how to's"...appreciate the help.

Am under the impression that search engines, spiders, will not read, register the site if there isn't descriptive text in the banner, so changing it to a graphic was a last choice. Am I wrong??? Just in case, I have included descriptive text on the banner page, but adjusted the visible part so the viewers can't see it. It's not getting picked up by the engines anyway!
Would I have this same problem with text reformatting if I redesigned the site not to use frames, and insert text into tables? This site, for example, doesn't reformat text size. Is that because it's in a table?


Thanks again,
Chris
 
The only problem with <iframe> it isn't complient with netscape. This may not be a problem, but you may want to keep it in mind. You can add <alt> tags to your graphic to take care of the search engine spiders.
 
Chris

If you kept your current code but removed the frames and used tables instead, a user could still enlarge the text.

As I mentioned above, if you specify the font size as pixels then the view > text size wouldn't resize the text, but there are still other browser options that will, and you cant do anything about that.

FreshJava

A lot of the search engines do not read alt text as it has been very commonly abused.

Hope this helps Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Instead of using this line in your index page

This page uses frames, but your browser doesn't support them

Replace it with a despriptive paragragh that describes your site using your main keywords. Keep it read-able and not just a list of keywords. Also add a site map (this is a page with every link on your site listed on it) After your descriptive paragragh then put the line This page uses frames, but your browser doesn't support them. To access the information please use our site map [link to sitemap] or something worded similiar, you get the idea.

The search engines will read that picking up your keywords from the text and it will also spider all your site since it will follow the site map link then every link on that page and since its a site map means every page on your site.

Also be advised after submitting your site to the search engines it could take up to 6 weeks to be picked up/listed if at all. Optitmizing your site will give you the best chance not to be passed over by the spiders. There are tons of articles out there on this that you will be able to find useful.

Moira
&quot;Those that stop learning, stop living.&quot;
 
I'm pretty sure iframes work in the new Mozilla-based browsers (including Netscape), just not older Netscape versions before like 6.1. But those old ones should be getting much harder to come across these days.

Alternatively, you can put it inside of a div with hidden overflow, eg:
Code:
<div style=&quot;width:468; height:60; overflow:hidden;&quot;>
content here
</div>
And this should work on all browsers. If someone adjusts the text so that it goes out of the bounds you specify, then it will just be cut off instead of screwing up your layout. Sincerely,

Tom Anderson
Order amid Chaos, Inc.
 
You can use CSS (Cascading Style Sheets) to fix the size of fonts used in your site by building a global stylesheet.

Create a file in your webspace called, say, style.css which contains the following:

Code:
BODY {font-size: 12pt; }

Then add the following line to the <HEAD> section of each of your pages:

Code:
<LINK REL=&quot;stylesheet&quot; TYPE=&quot;text/css&quot; HREF=&quot;/style.css&quot;>

This should force all your text to be 12 point. You can make your stylesheet much more elaborate than this - there are plenty of resources out there to help you. You can get the same results for a particular bit of a page by defining the style inline:

Code:
<P STYLE=&quot;font-size: 20pt;&quot;>Always 20 point</P>

HOWEVER, as a general principal you should be wary of fixing the size of text without a good reason. It's a principle of the web that the surfer has (at least some) control over the presentation - you just worry about the content. You might like it at a particular size, I might prefer it larger. Or smaller. Suppose I'm using a bigger or smaller monitor, a higher or lower resolution, I might have a visual impairment which means I need larger text, I might be viewing your site through a PDA or a TV or something. Forcing me to view the site in a way that looks good to you, on your PC, may just force me to go elsewhere instead. -- Chris Hunt
Extra Connections Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top