Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7879993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:02:13+00:00 2026-06-03T04:02:13+00:00

I am creating a tumblr theme and when you hover over a photo post

  • 0

I am creating a tumblr theme and when you hover over a photo post it shows a description (example description shown below).

The designer only wants the first three lines of the description to show and place ellipses after after the description if it overspills 3 lines.

What’s the best way of going about this considering that a character count isn’t a good enough?

Thanks for the help…

http://brendan-rice.tumblr.com/

Example Photo Post

<div class="description photo" style="background-color: rgb(82, 69, 99);">
    <div style="">
        <input type="hidden" value="22186233340" class="id">
        <span class="title" style="">
        <p style="">
            <a href="http://staff.tumblr.com/post/21806558913/attention-west-coast-check-out-our-official" class="tumblr_blog" style="">staff</a>:
        </p>
        <blockquote style="">
            <p style="">
                <strong style="">Attention West Coast:</strong> Check out our <a href="http://www.tumblr.com/meetup/10107" style="">official Tumblr meetup</a> in Los Angeles on Tuesday 5/1! RSVP <a href="http://www.tumblr.com/meetup/10107" style="">here</a>.
            </p>
        </blockquote>
        <p style="">
            (Source: <a title="meetups" href="http://meetups.tumblr.com/post/21804989817/were-gonna-be-in-la-tuesday-night-come-grab-a" style="">meetups</a>)
        </p>
        </span>
        <div class="actions" style="">
            <span style="float: left;">
            <a target="_blank" href="http://www.tumblr.com/follow/penguinenglishlibrary " class="follow" style="">
            Follow </a>
            </span>
            <span style="float: right;">
            <a target="_blank" href="http://www.tumblr.com/reblog/22186233340/Pw5OgVj1" class="reblog" style="">
            Reblog </a>
            </span>
            <span style="float: right;">
            <a target="_blank" href="http://www.tumblr.com/reblog/22186233340/Pw5OgVj1" class="like" style="">
            Like </a>
            </span>
        </div>
    </div>
</div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:02:14+00:00Added an answer on June 3, 2026 at 4:02 am

    EDIT: just found this: http://dotdotdot.frebsite.nl/ which should solve your issue (jquery plugin)

    As far as I know there is no way to make it wrap to three lines and then ellipsis.

    If you just want the ellipsis after 1 line, use:

    .class{
      width:200px;
      text-overflow:ellipsis;
      white-space:nowrap;
      overflow:hidden;
    }
    

    However, you can do some tricky css to emulate it, though it won’t be perfect 100%. I’ve attached a jsfiddle with the emulation: http://jsfiddle.net/ET3F8/

    Essentially, its wrapping to 3 lines and then becoming hidden. There is an element containing the ellipsis text (“…”) which is positioned at the bottom right of the container. It will cover the text and emulate ellipsis.

    Issues:
    – It will always display. You could perhaps use some JS to hide it if the text is not overflowing.
    – It sometimes will break a letter.

    Anyway, just an idea!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a single post per page tumblr template with the body content as
When creating a Tumblr post, and using the HTML editor option, when I add
I've been creating a custom Tumblr blog theme for my site and all was
I'm currently creating my first custom theme for Tumblr and I can't find any
I am creating this custom theme www.designislikethis.tumblr.com , which uses the jQuery Masonry and
I am creating a tumblr theme and I dont want to display posts with
I am nearly finished creating the tumbler theme below. The theme uses the infinite
It seems like {PreviousPost} and {NextPost} is not working on Tumblr for creating custom
background i am actually creating an infinite page scroller in jQuery for my tumblr.
Creating a watch on a TreeNode , for example, displays an expandable watch item

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.