Solved

How to force no text resize

Posted on 2007-11-27
6
341 Views
Last Modified: 2009-07-29
Good afternoon,

I have a specific area of text in a html webpage that i don't want to be able to resize upon browser
resize requests.  Basically the text needs to stay the same size even if the user goes to the view menu, text size, largest within internet explorer.

Is there a way to do this?

rgds
0
Comment
Question by:Allan_Shiels
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 23

Expert Comment

by:Ashish Patel
ID: 20357419
Try adding the below line in your html instead of just the <html> tag.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >

Open in new window

0
 

Author Comment

by:Allan_Shiels
ID: 20357457
I have done this, but to no avail?
0
 
LVL 23

Expert Comment

by:Ashish Patel
ID: 20357467
And How about this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

Open in new window

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 23

Accepted Solution

by:
Ashish Patel earned 500 total points
ID: 20357603
Okay here we go,
you will have to apply style to body tag and div tag if they exists with something like font-size: 8px; and that particular area will not get affected then after.
0
 
LVL 23

Expert Comment

by:Ashish Patel
ID: 20357616
This is same with this experts-exchange site too, as it has a style defined for body tag and if you try changing larger or anything that wont affect this site. Please do a test in an html with some text inside and by defining a style to body  and it wont change the font size.
0
 

Author Comment

by:Allan_Shiels
ID: 20358099
good lad
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question