How to get similar style as JQuery UI website itself


Tags: css,jquery-ui

Problem :

I use jQuery UI and the "Smooth Default" CSS theme. However, everything looks bigger in my website compared to the jQuery UI website. For example, take the buttons here: http://jqueryui.com/button/

In my website they look much bigger with more padding and larger font. Do you know how I can imitate the jQuery UI website?



Solution :

If you inspect the jQuery UI website using your browser's web inspector, you can see that in the <iframe> containing the buttons you mention, the following CSS is applied:

body {
    font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif";
    /* This is making the text smaller */
    font-size: 62.5%;
}

In other words, they modified the CSS font-size property to make the text display smaller.


    CSS Howto..

    Element has greater px width than device viewport but still shows completely (mobile web app)

    How to start css and html

    Css accordion menu, how to set height to automatic?

    How is this fluid column layout changing to single-column as page narrows?

    Achieved JS typewriter effect, can't figure out how to make it loop after last array item

    How to get position of div inside td

    How to select lowest level ul in nested ul in Javascript/ css

    How to resize content area with CSS dynamically and no javascript

    How to prevent division when using variables separated by a slash in CSS property values

    How to override css class without touching the HTML?

    How to target the text in an element but not the text in nested elements with CSS

    How to download Jquery if link only shows source code and connect it to my html

    JQuery: How to change CSS of elements that are with a certain element in one group

    How to make an entire square div clickable with CSS?

    How can I make this menu's “clear:both” work in Google Chrome?

    How to make a CSS button work correctly?

    How to make a transparent border using CSS?

    Css Drop down menu, how to keep menu infront of content

    How to make all the content placed in the center of div?

    How to add link without ruining transition CSS/HTML

    How to change the background color of a span/div WITHOUT CSS [closed]

    How to dynamically set the height in a CSS-class depending on the browser's window size with Javascript / jQuery?

    How do I center the contents in this div?

    How to create a pricetag shape in CSS and HTML

    HTML to PDF (by javascript) how can I add css or table?

    How to modify this JQuery CSS into my view?

    How to make an ad wrapper which displays a message if a user has adblock running?

    How to style “submit” inputs on mouseover, click?

    How do I make a symmetrical downward pointing angle that is greater than 90 degrees using CSS?

    How browser renders HTML