Results 1 to 10 of 11

Thread: placing a space inside a label (  doesn't work)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default placing a space inside a label (  doesn't work)

    Is there a way to place multiple spaces inside a label (between actual text).

    For example, lets say I have the text: '100 %' (bit of an extreme example), when rendered, it shows up as: '100 %'.

    All of the spaces are truncated into 1.

    Any ideas?

  2. #2
    Ext User zhegwood's Avatar
    Join Date
    Dec 2007
    Location
    Boulder, CO Suburbia (Lafayette)
    Posts
    388

    Default

    Haven't tried it, but if   doesn't work maybe try a transparent image?

  3. #3

    Default

    I've tried ' ' & '\s', but neither worked. They actually resolve

    I didn't try an image, as it seems like a bit of overkill. I suppose I could do that if I had no other options

  4. #4
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854

    Default

    Multiple   strings should work. Note that you may also have to escape the & as &

  5. #5

    Default

    I tried both   as well as &ampnbsp;

    but nether seemed to work.

  6. #6
    Sencha Premium Member tjstuart's Avatar
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    457

    Default

    What kind of label? Couldn't you just create a span and set a margin on it eg.

    PHP Code:
    a<span style="margin-left:50px;">b</span

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •