font-size

Font-Size for Button and Link

I try simple html: TEST FONT SIZE</br> <input type="button" value="test bytton" style="font-size:20px"> <a style="font-size:20px">test link</a> and found out that font-size of button looks like bigger then font-size of link in spite of style. Does anybody know why style works differently for link and for button. And how to make them l...

font-size difference between opera and firefox

I found my page text displayed in opera and firefox with different font-size. <div id='kfbuttext1'> <a href='#' class='kfbutlink'>test string</a> <a href='#' class='kfbutlink'>line 2</a> </div> CSS as follows .kfbutlink{Font-family:arial; font-size:12px}. it looks fine it firefox but opera(...

Actual width of a text/caption in Delphi 7

I believe this question was already asked, but it was in Java, so I couldn't understand the solution. Here is my problem, I want to know actual length of the text in pixels (note that various letters have different length in some fonts). I am going to use this for better column width adjustment in DBGrid. Thank you, Tofig Hasanov ...

HTML: Font size is too big - why?

Here's a snippet of my HTML code. I specify the font size for each text to be 14, but when I render it on Firefox, it looks so big! Is there a better way to specify the font size? Note: I want to know how to do this in HTML, not using CSS. <html> <head> <title>Clinics with H1N1 Flu Vaccine in Stock</title> </head> <body> ...

Max font size for sIFR

I am trying to implement a large font for sIFR, but it seems to have a ceiling where you cant go any higher. I have adjusted the the variable MAX_FONT_SIZE within the sIFR.as to no avail. Is this possible or is it a limitation with flash? ...

How do I determine the "narrowest" font on Windows?

Hello I am looking for a way to find the font that uses the least average horizontal space per letter, since I have a few buttons in my application that need to show a rather long text in it, and the goal is to make the buttons with the minimal width necessary. Since I already know the environment where the application is going to be ...

How to measure the pixel width of a digit in a given font / size (C#)

I am trying to calculate the pixel width of Excel columns, as described in this post, using the official formula from the OpenXML specification. However, in order to apply this formula, I need to know the Maximum Digit Width of the Normal font, which is the pixel width of the widest numeric digit. The OpenXML specification gives this exa...

WinForms Different DPI Layouts

Somehow forms and controls created through Visual Studio and the designer have the great ability to scale themselves depending on the current DPI/font size of Windows. One portion of my UI is a tab control full of dynamic pages and labels/inputs generated depending on the user's selection. When these are created, they use hard coded size...

Should we still use em and % for defining the font-size of the website elements?

I've found many suggestions on using different font-sizes and measure units for websites. Most of them suggest to define body font-size in % (100.1%) and use em for the rest part. I realize this is very useful for preserving the proportions while zooming in and out, especially for older browsers. But today most of the web browsers can co...

Get computed font size for DOM element in JS

Is it possible to detect the computed font-size of a DOM element, taking into consideration generic settings made elsewhere (In the body tag for example), inherited values, and so on? A framework-independent approach would be nice, as I'm working on a script that should work standalone, but that is not a requirement of course. Backgro...

ASP.NET changing style in DIV tag

Hello, I am working on a web site for an optical company. The company works with people that have minor visual impairment up through major impairment, some requiring special equipment in order to view web pages. Because of the diverse client requirements, we are planning to make available, an option which allows the client, at the time ...

sIFR font-size not working

I can't control the font-size in the main content column (#homepage)...the .sIFR-root styling (14px) is not being applied...instead, a huge font is being used. The font-size does work in the sidebar. My settings: div#sidebar h2, div#homepage h1 .sIFR-root { font-size:14px; font-weight:normal; color:#095b09; } a { text-decoration:none...

Not able to change the size of captcha in PHP

I have the following captcha plug-in. I tried changing different font-size but none of them worked. Could anyone tell me how to change the font-size please. Thanks in advance. EDITED: Code Here. ...

is font/text sizing in % more accessible and manageble than em ?

Both article are proving this. http://www.kyleschaeffer.com/best-practices/css-font-size-em-vs-px-vs-pt-vs/ http://www.maxdesign.com.au/presentation/relative/ I want to know SO users view? ...

Getting the default font size of a multiline TextView in Android

I want to have a font-size preference in percentage relative to the default font-size, so I need to get the default font-size for a TextView. How do I get the default font-size of a TextView? ...

sIFR: Different Font-Sizes rendered

Hello, why does my .swf-file render different font-sizes depending on the displayed content? I defined only one "sIFR-class". Why are there rendered different font-sizes? See my two example links below. Big font-size Small font-size ...

How do I increase font sizes within XCode

I have managed to increase the font sizes for the XCode editor window, but haven't found a way to increase font sizes in other areas of the application, such as the Groups & Files side bar and the console window. Someone suggested using TinkerTool to do this, and I downloaded the tool, but it's not at all clear to me how to use the to...

why jquery's ui.css files's font-sizes are bigger than normal?

Hi all, Im looking at jqueries tabs, datepicker etc and see that font-sizes of the classes added to elements are like 1.1em, 1em which seems big in the page. Why did they do this like that? What is the purpose? http://jquery-ui.googlecode.com/svn/tags/latest/themes/base/jquery.ui.theme.css ...

How can I override the minimum-font-size in Firefox?

My site displays just like in need in IE and Opera, but in Firefox I can't get (via CSS) to have font sizes smaller than Firefox' default minimum-font-size. Of course I can go to Tools>Options and remove this value, but other users will see some of the elements displaced. I have tried using !important, but it doesn't work. And I can't s...

IE font size decrease does not cause select box height to decrease

I have a font resize function on my page which increases the font size via javascript for the entire page. This works fine in most browsers except IE. When decreasing the font size after increasing it, the select boxes new height does not decrease, even though the font size is decreasing on it. Instead the smaller font appears to be p...