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 8186785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:20:35+00:00 2026-06-07T02:20:35+00:00

http://jsbin.com/oqotew/edit#html,live If you visit the link above when you have a wide browser window,

  • 0

http://jsbin.com/oqotew/edit#html,live

If you visit the link above when you have a wide browser window, the text appears to the right of the image. If you narrow the window, the text jumps down to below the image.

Goal: I want the text to always remain at the right of the image, and overflow with “…” whenever the window gets too narrow to contain it, instead of bumping it to below the image. Is that possible?

My CSS looks like this:

img { float: left; margin-right: 10px; }
.details { float: left; }
a { display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; color: #39C; font-size: 16px; text-decoration:none; }

Html:

<img src="http://placehold.it/130x65" />
<div class="details">
  <a href="#">Kind of a long title for a url. This should overflow with ellipsis if the browser gets narrower.</a>
</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-07T02:20:38+00:00Added an answer on June 7, 2026 at 2:20 am

    Try removing the float from .details

    img { float: left; margin-right: 10px; }
    a { display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; color: #39C;
    font-size: 16px; text-decoration:none; }
    

    Updated demo

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

Sidebar

Related Questions

code link: http://jsbin.com/ozoma3/edit codes (can copy/paste to a .html file, and run it) :
I have this HTML and CSS http://jsbin.com/uciya5/3/edit where the problem is that the radio
http://jsbin.com/eyikac/3/edit#javascript,html,live - this works for me. I thought I wasn't allowed to do cross-domain
This javascript code from RoToRa does what I want: http://jsbin.com/ayoqem/7/edit#javascript,html,live What jQuery code will
Code as reference: http://jsbin.com/aboca3/2/edit In this example above (thank you SLaks) I am truncating
EDIT: See this in action here: http://jsbin.com/emobi/5 -- and that's using mouseenter/mouseleave. I have
http://jsbin.com/eyeqer/2/edit var x = document.evaluate('//p/following-sibling::text()', document, null, XPathResult.ANY_TYPE, null); var theTitle = x.iterateNext(); while
http://jsbin.com/izupek/edit#javascript,html all 3 examples are working and parsing my date. Ive read in https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/parse
http://jsbin.com/utisoz/edit#javascript,html Ive created a simple table without Tbody how ever it seems that it
See: http://jsbin.com/ebudec/edit#javascript,html It seems strange but I think jsBin doesn't recognize the jQuery document

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.