views:

301

answers:

3

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

+1  A: 

This is the default style that someone determined, you are free to change it though using ThemeRoller. Just go under font settings on the left and adjust to what you want.

Nick Craver
thanks i used not know that page its really good =)
mehmet6parmak
A: 

I don't understand why the default fonts are so much larger than the fonts in the demo. I realize that I can change it, but I can't change the font size on the version that Google is hosting.

Robert Folkerts
@robertsee http://stackoverflow.com/questions/2372859/why-jquerys-ui-css-filess-font-sizes-are-bigger-than-normal/2647370#2647370sry for posting an answer instead of a comment but i felt the need of code highlighting :)
marc.d
A: 

em is a relativ size and depends on the next fixed font-size up the dom tree. when there is no fixed font-size it defaults to 16px.

so when you change your own css like this

body {
    font-size: 12px;
}

1em means 12px, 2em means 24px and so on.

marc.d