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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:54:44+00:00 2026-06-12T00:54:44+00:00

I have accordion as below. <div class=question>Header 1</div> <div class=answer> text 1 </div> <div

  • 0

I have accordion as below.

<div class="question">Header 1</div>
<div class="answer">
    text 1            
</div>
<div class="question">Header 2</div>
<div class="answer">
    text 2

</div>

CSS I have is

#wrapper {
    width: 100%;
    font-family:verdana;
    font-size:12px;
}

.question {  
    width: 100%;
    float: left;
    border: solid blue;
    border-width: thin;
    background-color: #5CB3FF;
    font-size: 18px;
    font-weight: bold;
    padding-top:20px;
    cursor: pointer;
    background-image: url(images/down_arrow.jpg);
    background-size: 5% 100%;
    background-repeat : no-repeat;
}
.question:hover {
    border: solid blue;
    border-width: thin;
    background-color: #736AFF;
}

.answer {  
    width: 100%;
    float: left;
    padding-top:10px;
    padding-bottom:10px;
}

.active {
    background-image: url(images/up_arrow.jpg);
    background-size: 5% 100%;
    background-repeat:no-repeat;
}

This gives me output as below

| image    Header 1             |
| image    Header 2             |

What I want is add SAME image on the RIGHT side too, so that output would be

| image    Header 1            image |
| image    Header 2            image |
  • 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-06-12T00:54:45+00:00Added an answer on June 12, 2026 at 12:54 am

    Multiple backgrounds?

    .question {
        background:url(images/up_arrow.jpg) top left; /* fallback */
        background:url(images/up_arrow.jpg) top left, url(images/up_arrow.jpg) top right;
        background-size: 5% 100%;
        background-repeat:no-repeat;
        background-color: #5CB3FF;
    }
    

    Demo

    Note: You will need to bring background-color: #5CB3FF; after background image because the shorthand background: will overwrite any previsious declarations.

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

Sidebar

Related Questions

I have a JQuery Accordion as below; <div id=accordion> <h3 class=ui-accordion-header><a id=link1 href=#>First Header</a></h3>
I have a Jquery Accordion and I have a asp.net GridView below that. When
preg_match_all('/<h3>(.+?)<span>[a-z]*<\/span><\/h3>[\t\s+]*<ul class=cities>(.+?)<\/ul>[\t\s+]*<div class=clear><\/div>/is', Below is my attempt to make <h3>(.+?)<span> ungreedy according to the
I need to do something like below. I have number of div with same
I have a DIV container in the screenshot below. I have 15px padding to
I have created an input according to the code below. <div> <form id=me runat=server>
I have a accordion menu which is developed by using the below script $(document).ready(function(){
I have the accordion below which works but when an item is open if
I have to display below snippet according to data available in DB <div id=testimonial-row>
I have a method below doing casting on a String according to the given

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.