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

  • Home
  • SEARCH
  • 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 129361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:46:43+00:00 2026-05-11T05:46:43+00:00

I was wondering if there was a way of using HTML for the content

  • 0

I was wondering if there was a way of using HTML for the content of my ASP:Listbox items instead of plain text? The reason I ask is because I’d like to do some extra formatting on each item in the list. Not just font changes, but perhaps icons alongside the text or table rows to divide up each list item.

I’m vaguely aware that there may be a JavaScript solution to this problem, but I’m not having much luck with it, so if anyone can offer any suggestions or pointers that’d be great.

Edit: I should clarify that my target platform is .NET 2.0 and IE6.


Peter, that’s very close to what I’m after. I’ve done this in my .NET app;

itemToAdd.Attributes.Add('style', 'padding-left: 20px; background: url(' + image + '.gif) no-repeat left center;'); 

This works exactly as expected in FF3, but in IE the images are not displayed for some reason. Does anyone know of any issues surrounding the use of the background CSS element in IE?

  • 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. 2026-05-11T05:46:43+00:00Added an answer on May 11, 2026 at 5:46 am

    there is another related stack-overflow question here:

    Is there a way to enhance by CSS an HTML <select> and its <option> on IE 6?

    From that it seems like you can;t set many of the css selectors for the OPTION element inside a SELECT.

    You can set some things like color and background-color in IE6 but not other things like padding (that do work in certain newer browsers).

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

Sidebar

Related Questions

I was wondering wether there is a way to include some html content inside
was wondering if there is a way to make superfish using jquery ui theme
I am wondering if there is a way to do this using Core Animation.
I'm using jQGrid and I'm wondering if there is a way to get the
I was wondering if there is a way, using PHP, to change this date
I'm using xcode and I was wondering if there was a way to view
I'm using Websphere portal 6.0 and I'm wondering if there's a way in which
I'm using Python 2.x and I'm wondering if there's a way to tell if
I'm using Tkinter, and I'm wondering if there is a way to define one
I'm using TFS 2010 and am wondering whether there is an easy way, either

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.