Spaces in the items in a listbox


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Spaces in the items in a listbox

  1. #1
    Kurt Guest

    Spaces in the items in a listbox


    Hello,

    I want to add items to a listbox that contain multiple successive spaces.
    This is done on the server. When using "View source" the items are correct.
    However on the screen, I only have one spaces in stead of multiple.
    How can I solve this problem

    Thanks

    Kurt

  2. #2
    Duray AKAR Guest

    Re: Spaces in the items in a listbox


    Kurt,

    HTML will never show more than one space between two words.

    If you want to have successive spaces you need to use  

    (view the source if it does not display on the screen>&nbsp;&nbsp;&nbsp;<)


    it works same for text between option tag...

    Duray

    "Kurt" <Kurt.Vandevelde@CMG.Be> wrote:
    >
    >Hello,
    >
    >I want to add items to a listbox that contain multiple successive spaces.
    >This is done on the server. When using "View source" the items are correct.
    >However on the screen, I only have one spaces in stead of multiple.
    >How can I solve this problem
    >
    >Thanks
    >
    >Kurt



  3. #3
    Kurt Guest

    Re: Spaces in the items in a listbox


    OK, but my listbox is loaded on the server in VB code. I use mylistbox.items.add("many
    blancs") to fill it up. When I replace in that instruction the spaces
    by &nbsp, I see "many&nbsp;&nbsp;&nbsp;&nbsp;blancs" on the screen.

    Is there a way to solve this?


    "Duray AKAR" <durayakar@yahoo.com> wrote:
    >
    >Kurt,
    >
    >HTML will never show more than one space between two words.
    >
    >If you want to have successive spaces you need to use *
    >
    >(view the source if it does not display on the screen>***<)
    >
    >
    >it works same for text between option tag...
    >
    >Duray
    >
    >"Kurt" <Kurt.Vandevelde@CMG.Be> wrote:
    >>
    >>Hello,
    >>
    >>I want to add items to a listbox that contain multiple successive spaces.
    >>This is done on the server. When using "View source" the items are correct.
    >>However on the screen, I only have one spaces in stead of multiple.
    >>How can I solve this problem
    >>
    >>Thanks
    >>
    >>Kurt

    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center