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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:50:47+00:00 2026-05-20T18:50:47+00:00

i have this specific scenario: i have 4 tabs and each tab has it’s

  • 0

i have this specific scenario:

i have 4 tabs and each tab has it’s own 2 icons for when it’s selected or not.

what i want to do is for the icon to change when i click the tab and change to another icon when i click another tab.

p.s. i am talking about the tabs itself and not about the content of the containers.

thanks

check this image:
http://answers.oreilly.com/index.php?app=core&module=attach&section=attach&attach_rel_module=post&attach_id=621

  • 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-20T18:50:48+00:00Added an answer on May 20, 2026 at 6:50 pm

    Assuming each tab has their own css class, you could use background-image in CSS for each of the pictures in the tabs.

    Then, when the tab is selected (which you could then add a class saying it’s selected like “selected” or something) and then give a different image

    For example:

    .book_tab{
    background-image:url('img_plane.png');
    background-repeat:no-repeat;`
    }
    .rent_tab{
    background-image:url('img_car.png');
    background-repeat:no-repeat;`
    }
    .deals_tab{
    background-image:url('img_tag.png');
    background-repeat:no-repeat;`
    }
    .book_tab .selected{
    background-image:url('img_plane2.png');
    background-repeat:no-repeat;`
    }
    .rent_tab .selected{
    background-image:url('img_car2.png');
    background-repeat:no-repeat;`
    }
    .deals_tab .selected{
    background-image:url('img_tag2.png');
    background-repeat:no-repeat;`
    }
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this scenario with GIT: I want to do something with a specific
This is a more theoretical question, not a specific scenario: Let's assume, we have
Here is the scenario: I have an activity with 4 tabs, each tab with
I have seen a few posts regarding this issue but not one specific to
Take this scenario. I have a Google Analytics tracking code, and I only want
In this specific scenario, say I have a couple of tables {A,B} and their
I don't have a specific scenario in mind, but this question just crossed my
I have seen similar threads on this QnA, but my specific scenario is as
I have a system that supports multiple products. Each product has its own database
Ok, if I have this right, my code can get cookies at a specific

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.