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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T14:29:53+00:00 2026-05-15T14:29:53+00:00

Im implementing a site with shopping cart features and want the user to be

  • 0

Im implementing a site with shopping cart features and want the user to be able to select the color for the product they are purchasing.

Let’s say I started with something like this:

<form action="">
  <input type="radio" name="color" value="red" />
  <input type="radio" name="color" value="green" />
  <input type="radio" name="color" value="black" />
</form>

What CSS is needed to show coloured boxes for each of the options, with the boxes displayed horizontally and have a border around the selected option?

Along the lines of:

[redbox] [greenbox] [blackbox]

  • 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-15T14:29:54+00:00Added an answer on May 15, 2026 at 2:29 pm

    You can check out jQuery UI’s Button http://jqueryui.com/demos/button/#radio

    It allows you to create nice styles for checkboxes/radio buttons and so on..

    I’m not sure if you’d want to use a whole framework for that though, but as far as I know, radio buttons aren’t very ‘stylable’. You’d need to create another element next to it, and change the selected value of the radio button programatically.

    Hope this helps,

    Marko

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

Sidebar

Related Questions

I am implementing a shopping cart site. When the user add the item, it
So i am going to take my first hack at implementing a shopping cart
I'm implementing a wiki style site and want to highlight changes made to articles
I am implementing an internal site, for which I want our company's OpenID server
So i'm implementing a feature where after a user has visited my site, and
I am implementing a mechanism wherein every user who comes to our site is
I'm creating a site which has a shopping cart. I do not need any
I'm implementing an AspDotNetStorefront (ASPDNSF) site for a client, they've purchased the source code
I'm implementing a site which has a search that can be executed via Controller
I'm running a drupal site and implementing esi support. So far it went ok

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.