The moose likes HTML, CSS and JavaScript and the fly likes how check the font size in IE and NS Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "how check the font size in IE and NS" Watch "how check the font size in IE and NS" New topic
Author

how check the font size in IE and NS

adithi gudipudi
Greenhorn

Joined: Oct 20, 2003
Posts: 25
hello All,
How can I see the default font size in the IE and NS browser. I can see the font face in the options/preference. Does this depend on the Text size option we see in View( small, Medium ... etc) or the font size we set in the computer properties.
Thanks
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 411
I am not really sure where it takes it from, also, in IE there is an ability to override styles provided by web page with some predefined ones.
But back to your question
Create a hidden span with some text inside and check that span height (set margins to 0, etc). It will give you font size in pixels.
 
 
subject: how check the font size in IE and NS
 
Threads others viewed
How to specify different fonts with different font sizes in Stylesheets?
how to change font size on unix?
Logging Tab
font distortion
How to specify different fonts with different font sizes in Stylesheets?
developer file tools