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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:44:10+00:00 2026-06-11T21:44:10+00:00

http://jsfiddle.net/3BFGU/27/ Does anyone know why the width of the span containing text ABC is

  • 0

http://jsfiddle.net/3BFGU/27/

Does anyone know why the width of the span containing text “ABC” is being returned 0.

1) Happens only in Firefox.
2) If i remove a span in between, it works ok. (http://jsfiddle.net/3BFGU/30/)

  • 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-11T21:44:11+00:00Added an answer on June 11, 2026 at 9:44 pm

    Not sure why – it might be a bug; however, …

    Span’s by default shouldn’t have any width properties, of course they eventually do after the browser renders it. What you could do is make them block-like elements, which should fix it:

    span { display:inline-block; }
    

    Edit:

    Something else that’s interesting is if you delete all the white-space between the ABC span and it’s wrapper, it will work properly. This might have something to do with the white-space and wrapping. The browser might not be able to give a width because the container might start on one line and end on another. That might explain why making it a block fixes it, since making the container a block, might keep the entire container together.

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

Sidebar

Related Questions

http://jsfiddle.net/3BFGU/71/ Width of the html parent element (calculated using 1$(el).width()1) is less than the
http://jsfiddle.net/h2vMN/1/ I have a text box text inside it already, in the actual application
http://jsfiddle.net/GGsEt/3/ Works on firefox HTML <ul> <li class="lib_undefined"> <span class="hidden_toggle"> <a href="/">Test</a> </span> </li>
http://jsfiddle.net/2N854/ html: <img alt=test width=100 height=100> javascript: alert($('img').height()); On most browsers (chrome), the alert
http://jsfiddle.net/fQv97/ HTML <div class=table-cell> My text, should be align middle </div> CSS .table-cell {
http://jsfiddle.net/ujTDf/1/ link text Can anybody help please. The div/form doesn't switsch automaticly in other
http://jsfiddle.net/9aaNh/ Please check this Fiddle. I am having problem with spacing in between text
http://jsfiddle.net/nicktheandroid/6BAfH/1/ The list-elements are sorted accordingly by the number in their span. Why is
http://jsfiddle.net/xysxD/11/ if you check the jsfiddle Will have a comment text that slide toggle
http://jsfiddle.net/aBaw6/2/ This demo does not add class when you hover a list item. What

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.