Giter Club home page Giter Club logo

Comments (3)

litera avatar litera commented on May 10, 2024 3

@nhoizey That's a very interesting way of defining font size. Congrats on that. But can you please elaborate how you got to this specific value .8em+.3vw+.3vh? What reasoning did you use?

But in general I think your font size settings are the way to go in the typographic world of things. It's just that you should also include/incorporate some sort of content width/content grid and font family into this expression. If we look at typographers' text block width table this should become the golden standard of setting readable font size based on text block width and font used. Viewport size may even be obsolete unless it's content uses 100% its width.

The usual typographer's bible (Elements of Typographic Style — Robert Bringhurst) has this table with width/font size/character count values
image
If I have to create a website for readability I try to base sizes according to my grid/text block size and this table or at least approximate on it.

from css-protips.

nhoizey avatar nhoizey commented on May 10, 2024 1

@AllThingsSmitty thanks for reading it! ;-)

html { font-size: 1em; } is useless, as it is the default value. So I would advocate for nothing at all.

To be honest, I now use something a little more complex on the body to add some fluid responsiveness to my font-size, but I don't touch the html font-size at all and the value on body is meant to be equal to 1em or more, depending on viewport sizes.

from css-protips.

AllThingsSmitty avatar AllThingsSmitty commented on May 10, 2024

@nhoizey thanks for the feedback. Your post is interesting. Are you advocating more for just html { font-size: 1em; } to let the default value be interited per browser?

from css-protips.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.