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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:11:33+00:00 2026-05-30T01:11:33+00:00

I have the following: .style-switcher {overflow: auto;margin: 0;padding: 0;} .style-switcher > li {float: left;list-style-type:

  • 0

I have the following:

.style-switcher {overflow: auto;margin: 0;padding: 0;}
.style-switcher > li {float: left;list-style-type: none;width: 1em;}
.style-switcher > li > a {display: block;width: 1em;}

<ul class="style-switcher">
   <li><a href="#" data-style="humanity">A</a></li>
   <li><a href="#" data-style="vader">B</a></li>
</ul>

$(".style-switcher").on('click', 'a', function(e) {
    var style = $(this).attr('data-style');
    changeStyle('/Content/Themes-jQuery/' + style + '/jquery-ui-1.8.17.custom.css');
    e.preventDefault();
});

Instead of having the user click on “A” or “B” I would like the user to click on a
colored square and I would like each colored square to have maybe 2px spacing.

Is there an easy way that I could achieve this so that just colored squares appeared instead of A and B ?

  • 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-30T01:11:35+00:00Added an answer on May 30, 2026 at 1:11 am

    You could use this character: ■

    It’s U+25A0.

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

Sidebar

Related Questions

I have a span with the following style: margin: 5px 0; padding: 2px; cursor:
I have the following style: <Style x:Key=ActionLabelStyle TargetType={x:Type Label}> <Setter Property=Margin Value=10,3 /> <Setter
I have the following CSS3 style: .shiny-btn { cursor: pointer; text-align:center; width: 15em; padding:
I have the following CSS .ul{ list-style-image:url(/images/bullet.png) } My bullet.png is 20 x 20px
I have the following: <div class=style-switcher id=colorChanger> <a style=background-color: #FFFFFF; data-style=arctic title=Arctic></a> <a style=background-color:
<Style x:Key=FavouriteMenuItemStyle TargetType={x:Type MenuItem} BasedOn={StaticResource BasicFavouriteItemStyle}> <Setter Property=Width Value=Auto/> <Setter Property=Template> <Setter.Value> <ControlTemplate TargetType={x:Type
I have following code: <style> .header { height:20px; width:100px; } .content { height:100px; width:100px;
I have the following style defined in my App.xaml <Style x:Key=textBoxMultiline TargetType={x:Type TextBox} >
I have the following style defined... <!-- Blue Button --> <Style x:Key=BlueButton TargetType={x:Type Button}>
In <Window.Resources> I have defined following style: <Style x:Key=textBlockStyle TargetType=TextBlock> <Setter Property=Margin Value=5,0,5,0/> </Style>

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.