Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Is this something CSS controls?
Old 03-14-2005, 09:15 AM Is this something CSS controls?
Experienced Talker

Posts: 36
Trades: 0
In IE, I can go to View > Text Size> and set the size of text on the page. However, on many pages, it does nothing. Does CSS fix the size of the text? If so, I guess this is also what you would use to keep tables with text within the cells from breaking apart?

Thanks.
ryan.small is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-14-2005, 09:17 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
IE will change the size of any text specified in relative units, but not fixed units. 'em' and 'ex' are realative, while 'px' is fixed. So text specified as 12px will stay the same, however text specified as 1.2em will change with the text size in IE.

Firefox, on the other hand, will change the text size regardless of what units you use.
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 03-14-2005, 10:13 AM
cjdesign's Avatar
Average Talker

Posts: 15
Location: England
Trades: 0
Did you know you could hold Ctrl and scroll your mouse wheel to alter the size of the text on a page? Pretty cool I thought.

Regarding your question, instead of pixel sizes, if you put in your body:

body
{
font-size: 80%;
}

That is the equivilant of font-size:13px; (the most popular size). You will notice that you can now increase the font-size in most browsers.

Note: to do sizes larger than the body, you would do the following:

h1 (for example)
{
font-size: 190%;
}

Hope that helps
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
cjdesign is offline
Reply With Quote
View Public Profile Visit cjdesign's homepage!
 
Old 03-14-2005, 10:32 AM
Experienced Talker

Posts: 36
Trades: 0
"IE will change the size of any text specified in relative units, but not fixed units."

In my code i have <font size="2"> but the IE setting still affects it for some reason?
ryan.small is offline
Reply With Quote
View Public Profile
 
Old 03-14-2005, 03:33 PM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
Thats a bit of an unknown to me... Firstly I always specify units cos otherwise the results can be unpredictable, secondly, I never use the fot tag...

Do you want it to be fixed? If so use <font size="13px"> (or other fixed unit) If not use <font size="80%"> (or other variable unit). I think it should still work in the font tag.
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Reply     « Reply to Is this something CSS controls?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.48850 seconds with 12 queries