Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Proportionally expanding to fit text content?

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #35633
    D3mon
    Member

    I’ve created this iOS style notifier…

    http://jsfiddle.net/jwtcS/8/

    but would welcome any suggestions to allow it to accomodate numbers with more digits, either by making the text size smaller, or (perhaps easier) proportionally resizing the circle to fit?

    #92694
    Senff
    Participant

    So what should it do when there’s a huge number in it, like 5 digits? Should it still be a large circle, or should it be an ellipse?

    #92695
    D3mon
    Member

    A larger circle I think (or smaller text). TBH, though, I’m expecting a reasonable maximum of 999 for this particular project.

    #92699
    D3mon
    Member

    Yes. Thanks very much. That looks to be a ‘visually tidy’ solution. :D

    #92700
    D3mon
    Member

    Ah perfect, that’s just the way iOS handles it too :D

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.