<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>25481</bug_id>
          
          <creation_ts>2014-04-27 08:30:40 +0000</creation_ts>
          <short_desc>enhancement: some way to set width, height of span without causing line break</short_desc>
          <delta_ts>2014-04-27 08:30:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>CSS Level 2</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jim Michaels">jmichae3</reporter>
          <assigned_to name="Bert Bos">bert</assigned_to>
          
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>104502</commentid>
    <comment_count>0</comment_count>
    <who name="Jim Michaels">jmichae3</who>
    <bug_when>2014-04-27 08:30:40 +0000</bug_when>
    <thetext>would someone like to propose some ideas for making it possible to set width,height of a span element without causing a line break? 

this seems to be an old problem a number of web devs would like to have solved. some browsers have this implemented, but apparently the spec in CSS2 10.3.1 and the lack of usable values for display property makes this seemingly impossible. 

setting a width and height should do what average joe user would think it does, set the width and height, without causing a line break like div does. float doesn&apos;t always work for an answer, because it reworks the flow of the content and may mess things up so it&apos;s unusable (with float in).

example problem:
when I make line counters, the width is always not set regardless of value of display property or combination with float:left. no css-only solution available.
thanks.

this seems to stem from block vs. inline thing. apparently block elements always are forced to cause a line break and I wish this wasn&apos;t so. it would be nice if there was some css to turn off (?)line-break on block level elements. that might solve a lot of problems and time I spend trying to get around being forced to use float. I would have to look somewhere to see if display:inline-block or display:run-in supports what I am describing, but when I try to use it with a counter, it doesn&apos;t work. when I try this out as just
http://Jesusnjim.com/web-design/DHTML/set-width-height-on-span.html
fails with current version of line numbering in http://JesusnJim.com/web-design/DHTML/js-associative-arrays-and-for-in.html (see code.css and /encode-decode-entities.js).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>