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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:29:55+00:00 2026-06-08T21:29:55+00:00

I try to change image backgrounds for every box inside a <td> tag but

  • 0

I try to change image backgrounds for every box inside a <td> tag but when I try to change one of these backgrounds, I obtain the same background of ALL boxes.
But it isn’t what I want.
This is the aspect of page:
enter image description here

The CSS that I’m using for box is this:

<style type='text/css'>
div.myautoscroll {
    height: 80ex;
    width: auto;
    background: white;
    background-image: url(cieloprato.jpg);
    overflow: hidden;
    border: 1px solid #444;
    margin: 1em;
}
div.myautoscroll:hover {
    overflow: auto;
}
div.myautoscroll p {
    padding-right: 16px;
}
div.myautoscroll:hover p {
    padding-right: 0px;
}
</style>

I tried add to each <div> element unique identifier or class, and get it by according selector in CSS but something is wrong.

I want change the 2nd background but if i try to change it, the css also changes my first background. You can see that background for both boxes is the same cieloprato.jpg. I want to insert another background for 2nd or 3rd box.
How can modify the CSS code?
This is my HTML page

  • 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-08T21:29:56+00:00Added an answer on June 8, 2026 at 9:29 pm

    yes, background image set for all div.myautoscroll ( and you see same image ). You can (for example) during generate table for every div.myautoscroll add ‘#myautoscroll_1’,’#myautoscroll_2’… ‘#myautoscroll_n’. And add css code:

    #myautoscroll_1 {
       background-image: url(image_1.jpg);
    }
    
    #myautoscroll_2 {
       background-image: url(image_2.jpg);
    }
    
    #myautoscroll_n {
       background-image: url(image_n.jpg);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need change the background image, so I using: $('body').css({backgroundImage : 'url(images/wallpaper/'+wp+'.jpg)'}); But, I
Guys I want the user to change the background image of all the activities
When I try to change image for WPF trigger 'IsMouseOver' for button, the control
I try to change a string into an object using eval but failed. var
im try to change my webrick to passenger with nginx but when i try
example i try to change cell.accessoryView from picture1 to picture2 by fadein but my
If i change the colour of the image and then try to resize, it
here ia an application where i displaying some text with image background but it
I try to use gallery to show image in network. But when turn left
I create a Silverlight OOB application in which I try to change the background

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.