Before you ask please READ THIS

Add ellipsis "..." on Works Title.

edited July 2013 in Beach Please Posts: 23
How do i add "..."and limit the characters on the title of works so they don't create 2 lines of title?

check www.museunaif.com/wordpress

i tried overflow ellipsis and nowrap but it's not creating the ... ... i guess it's the HTML structure for it that is causing this limitation.

Looking forward on a solution for this little tweak :)
Post edited by marcusvpais on

Comments

  • AirAir
    Posts: 10,970
    Hello:-)

    To make work text-overflow: ellipsis; you have to use combo styles:

    #a13-works .g-item .cov span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    }
    With regards.
  • Hm, almost work, but still it's not ading the "..." i need the 23px padding on the right too.

    http://museunaif.com/wordpress/
  • AirAir
    Posts: 10,970
    Remove width: 100% style that you have added. It works without it.

    With regards.
  • edited July 2013 Posts: 23
    Still not working : /

    Post edited by marcusvpais on
  • AirAir
    Posts: 10,970
    For me it works great, check screen shot.

    With regards.
    Untitled.jpg
    1249 x 826 - 277K
  • Its not working on Chrome / Safari, latest versions. but it's working on FF.
  • AirAir
    Posts: 10,970
    On my chrome on windows it works perfectly. Strange.

    Please try changing part text-overflow: ellipsis; to:
    text-overflow: ellipsis; -o-text-overflow: ellipsis; -icab-text-overflow: ellipsis; -khtml-text-overflow: ellipsis; -moz-text-overflow: ellipsis; -webkit-text-overflow: ellipsis; 
    Maybe this will help.

    With regards.
  • Strange. Still doesn't work on Chrome/Safari on mac. FF and Windows is fine. Any guesses? maybe it's something with the HTML?, ?
  • AirAir
    Posts: 10,970
    Sorry I had no idea and no machine to test on why this feature doesn't work there.

    IF I will find anything I will let you know here.

    With regards.
  • Just to let you know, it's working now :) thank you.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!