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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:45:56+00:00 2026-05-29T04:45:56+00:00

I am trying to get the image caption which is a dd-element to break

  • 0

I am trying to get the image caption which is a dd-element to break so it is as wide as it’s dt-element. I don’t want to use a width and using display: inline and float: left do not work. I have code and example here: http://jsfiddle.net/PnyHs/11/. I’m using Firefox 9 to test.

The only solution I can come up with right now is to use javascript to measure the dt-element and set that width to the dd-element.

Thanks in advance for any help and suggestions.

  • 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-05-29T04:46:00+00:00Added an answer on May 29, 2026 at 4:46 am

    If you want to keep the structure of your HTML and not use max-width, I dare to say this is impossible, and here is why:

    You are expecting the img object to constrain the dd element. However both elements are siblings and can only be constrained in terms of width by their parent (alternatively an element can be stretched out by its children). Hence, the dd will expand as much as it wants because the parent element is not limiting it.

    Of course this could be solved by setting the width of the parent element, however you’ve mentioned that you don’t want to do that since the pictures will have different sizes.

    So unfortunately unless you change your HTML structure this won’t be possible without JavaScript (unless I’m missing something obvious here).

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

Sidebar

Related Questions

I am trying to get an image from an HTTP server using Perl. I
I trying to use ImageInfo and Jython to get information from a image on
I am trying to use this jQuery script to make an image caption from
I am trying to get image size (image dimensions, width and height) of hundreds
I'm using Malsup's cycle() JQuery plugin, and am trying to get it to display
Im trying to get image using webservice and saved to sd card. The file
Currently i am trying to get remote image width/height. I am developing a link
I've been trying to get an Gtk2::Image object in this Perl Gtk2 application to
I've a crystal report that I'm trying to get a dynamic image displayed. This
I'm trying to get the pixel information from an image and have got to

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.