/    Sign up×
Community /Pin to ProfileBookmark

Ex measurement Unit

What is the purpose of ex measurement unit in CSS?

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@Douglas_WilliamFeb 23.2017 — Hi Mobilespy,

[i]The "ex" measurement is relational to line height in which a set font size resides. This in laymans term is the "control of line height".[/i]

Using the [i]search[/i] credentials of " What is the purpose of ex measurement unit in CSS? " the [i]search[/i] yielded this (along with a multitude of others) [url=https://www.w3.org/TR/css3-values/#ex]Technically Speaking at w3schools[/url].

- Douglas
Copy linkTweet thisAlerts:
@Douglas_WilliamFeb 23.2017 — 
  • - Douglas P.S.

    Sometimes the "edit" would be a god send ...

    [i]Technically Speaking at w3schools[/i] was meant to read: in your schooling (teaching yourself new things) visit [url=https://www.w3.org/]w3.org (The World Wide Web Consortium (W3C))[/url].


  • [i]...w3schools to The World Wide Web Consortium (W3C) is pretty much the Internet A-Z - good luck in surfing the web in a day...[/i]

    - Douglas
    Copy linkTweet thisAlerts:
    @krishna_agolaFeb 27.2017 — Hi,

    The ex unit is rarely used. Its purpose is to express sizes that must be related to the x-height of a current font.

    [code=html]
    <!DOCTYPE html>
    <html>
    <head>
    <style>
    div {
    font-size: 40px;
    border: 1px solid black;
    }

    span {
    font-size: 1ex;
    }
    </style>
    </head>
    <body>

    <div>The font-size of the div element is set to 40px. </br><span>The span element inside the div element has a font-size of 1ex</span>.</div>

    </body>
    </html>
    [/code]


    Thanks.

    Krishna Agola
    ×

    Success!

    Help @Mobilespy spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.1,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,
    )...