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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:50:38+00:00 2026-05-25T00:50:38+00:00

I am building a website which involves user comments and tags. I wish to

  • 0

I am building a website which involves user comments and tags.

I wish to implement tags as they appear on the StackOverflow’s Tags textbox after every question.

I am not able to figure out how to style a cross symbol after every tag and have a background for text inside the textbox as it’s done on StackOverflow.

How can this be done?

  • 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-05-25T00:50:39+00:00Added an answer on May 25, 2026 at 12:50 am

    As @Rikudo has already shown, a larger image which contains all the required images is used, along with some CSS to display only the required parts. This is the HTML used to display each tag:

    <span class="post-tag">
        "the-tag"
        <span class="delete-tag" onmouseover="$(this).attr('class', 'delete-tag-hover')" onmouseout="$(this).attr('class', 'delete-tag')" title="remove this tag"></span>
    </span>
    

    The relevant CSS rules applied to class delete-tag:

    background-image: url(img/sprites.png);
    background-position: 0px -690px;
    width: 14px;
    height: 14px;
    display: inline-block;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building an ASP.NET website which will collect data from a user and
I am implementing a search functionality in a website I am building, which involves
I'm building a website on which tweets from a certain user should be displayed.
I'm building a website which allows the user to drag elements on to the
I am building a website which loads some collada objects for each area. But
I'm building a public website which has its own domain name with pop/smtp mail
I'm building a website that will be an open-source, user-contributed content kind of thing,
I'm building a website that will require user registration and logon. I would like
I am building a website for a comedy group which uses Facebook as one
I'm building a website which should change the content div with another content div

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.