Make text with overflow-x: hidden move automatically

0

I'm setting the width of the li and sending all the text that exceeds is hidden, now I would like to make the part of the text that is hidden automatically move to appear on the screen.

HTML:

ul
      - @realties.each do |realty|
        li.tabs
          a href="#tab-#{realty.id}" #{realty.address.street} , #{realty.address.number}

Css:

ul
  li
    width: 150px
    a
      overflow-x: hidden
      width: inherit

Result:

    
asked by anonymous 09.11.2018 / 18:56

0 answers