Forums

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

Home Forums CSS Automatically resize text when overflown from div.

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #42843
    Anonymous
    Inactive

    I have a navigation bar, It looks perfectly but when users from other countries see the translated page each nav link becomes larger or smaller and when each word becomes larger the nav overflows and is covered. How can i make the font-size shrink or get larger depending on the available space. Here’s a pen so you can better see what i mean.[http://codepen.io/Jarolin/pen/bsJxi](http://codepen.io/Jarolin/pen/bsJxi “”)

    #125222
    Paulie_D
    Member

    WOW…Ok.

    To start with you can’t use the same ID more than once so giving it to all of your links is a big “no-no”.

    Here…I’ve tidied it up a little. :http://codepen.io/Paulie-D/pen/mHtGr

    #125224
    Paulie_D
    Member

    As for how it is viewed when translated…I don’t think there is much you can do about that….but I’ll have a think about inline-block and how that reacts to viewport sizes.

    #125281
    Anonymous
    Inactive

    There must be a way of doing it. I’m sure ive seen it before. Just cant remember where.

    #125283
    Paulie_D
    Member

    Perhaps they were using rems…but browser support isn’t too bad at the moment. IE9+ etc.

    #125354
    Anonymous
    Inactive

    Maybe something with jquery or javascript can work.

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