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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

test size 4

Status
Not open for further replies.

zacksack

Technical User
Oct 8, 2001
107
CA
Good evening,

Is there a way to set the text size to a default size like small? Let me explain, if you go to depending on what option you have set in internet explorer the page will either look good or it will have tables that stretch and the page really looks bad. If you have the text size set to smallest under view > text size within internet explorer it looks right. BUT once you change that text to smaller, medium or anything larger it stretches the tables and screws up the page. What can I do to make the text be a fixed size no matter what the individual browser options are set to? Im sure this is a CSS option, I have it set to a font size of 2 within Dreamweaver.

Thanks a lot and thanks in advance

Brad
 
you have to designate your font sizes in pixels

I made the text really large and the site still looked fine.

<Signature>
Sometimes the Answer You Are LOOKING for can be FOUND BY SEARCHING THE FAQ'S @&%$*#!!!
</Signature>
 
Thanks DeeCee,

The index looks fine now because I changed the bg but if you look at any of the other pages the bg doesnt line up if you enlarge the text. I made the text a size 2 in Dreamweaver is that what you mean by designating the font size in pixels? or do you mean I need to create a CSS assigning a font size like 9? I tried creating a CSS called text.css and it works fine on most of the pages but on all pages it doesnt seem to effect the font in the bottom tables?

Thanks again

Brad
 
&quot;it doesnt seem to effect the font in the bottom tables?&quot;
--did u apply it on the bottom table?check the code in the Code View....

> need more info?
:: don't click HERE ::
 
I was under the impression that I only had to attach the style sheet to a page not every table on that page? Is that wrong? I created a CSS called text I then CSS Styles window and clicked on attach style sheet and then browsed to the created text.css sheet.

Thanks for everyones help

Brad
 
u did it right....however, this is 2 step proces.
1. u attach the sheet to the page
2. u apply the css objects to the specific parts of that page
eg.
your CSS file (eg. MyStyle.css) can hold two decorations:
Code:
.heading{
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 18px;
	font-style: normal;
	color: #000000;
}
.text {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	color: #000000;
}

and the page with it:
Code:
<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>

<link href=&quot;/CSS/MyStyle.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;>

</head>
<body>
<table width=&quot;360&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; id=&quot;TABLE&quot;>
  <tr>


    <td align=&quot;center&quot; class=&quot;heading&quot;> HEADING</td>


  </tr>
  <tr>

    <td class=&quot;text&quot;>some text</td>


  </tr>
</table>
</body>
</html>

All the best!

> need more info?
:: don't click HERE ::
 
thanks leib for picking this up -- zack its pretty straight forward -- try and make styles for as much as you can rather than using <font>

<Signature>
Sometimes the Answer You Are LOOKING for can be FOUND BY SEARCHING THE FAQ'S @&%$*#!!!
</Signature>
 
Thanks for all your help I will give it a go and see what happens

Thanks again, and Im sure you guessed it by now I am a major rookie when it comes to html and CSS Im more of a graphic guy but Im trying :) So are you saying in dreameaver not to highlight the text and change the font size and style that way but to strickly do it with CSS? Im assuming thats what you mean so I will go do more studying.


Thanks again

Brad
 
&quot;I am a major rookie when it comes to html and CSS Im more of a graphic guy&quot;
:) ur a head of the game....most people are brialiant programmers...BUT unfortunately their work is presented with no style or even a single efffort to produce some &quot;eye candy&quot;
...I hate to to this but....just peak at this site:

which &quot;googled out&quot; for MS Access development in top 20 hits.....
so at least you got them beat in the &quot;looks&quot;! ;-)
Good luck in your HTML ventures!
p.s. dont forget to hit F1 when in Dreamweaver ;-)

All the best!

> need more info?
:: don't click HERE ::
 
Just wanted to thank everyone for their efforts. Ive been testing sites to see if their font size changes when you change the text size in IE to largest and a lot of sites dont but some sites do like all the ones i have done :) Im trying to correct this so the text size stays the same even if they have the text size set to largest in IE. An example of a site is this site the text stays the same size even if you go to view and change the text to largest in IE.

Just wondering how this is done, Ive been playing with CSS to see if I can get it to do it that way but i havent had any luck

Thanks again

Brad
 
Looking into the page code from the site above. The td tags are defined with a class of smalltext. From the css file this is:

.smalltext { font-size: 9px; font-weight: bold}

Hope that helps

[Peace][Pipe]
If you don't stand up for something, you'll fall down. Toke it Easy.
Howard Marks. Visit the forum at
 
BE WARNED!

Internet Explorer for Windows is the only major browser that won't let you resize your text when its set in pixels.

IE for MacOS, Netscape, Mozilla, Opera, Safari and Konqueror all let the user change their font size.

And IE users can set their default font size bigger (if for example they have bad eyesight) via Internet Options. IIRC this will override whatever is set in your stylesheet.

The best way is to design your site so that it won't break when the text gets bigger.

--
Olly
 
Thanks a lot everyone

And thats what I will try to do for now on Olly and thanks Cheech for your help.

Thanks again

Brad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top