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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:29:04+00:00 2026-06-10T01:29:04+00:00

I am attempting to make some rollever effects on a splash page I’m creating

  • 0

I am attempting to make some rollever effects on a splash page I’m creating for a site. I would like to use CSS3’s ability to have multiple backgrounds and the :pseudo class to achieve this.

Here is my attempt; however, his does not display in Dreamweaver or Chrome.

#1 {
width: 143px;
height: 142px;
background: url(../assets/Home/1a.jpg) top 0px no-repeat;
background: url(../assets/Home/1b.jpg) top -143px no-repeat;
display: inline-block;
}
#1:hover {
background: url(../assets/Home/1a.jpg) top -143px no-repeat;
background: url(../assets/Home/1b.jpg) top 0px no-repeat;
}

Any thoughts on how this could be improved or suggestions of alternate routes to achieve my goal?

  • 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-10T01:29:05+00:00Added an answer on June 10, 2026 at 1:29 am

    I think the problem is your container id: HTML ID tags can’t start with a number. I got your approach working with basically no changes.

    HTML

    <div id="c1"></div>​
    

    CSS

    #c1 {
     border: thin solid black;
     width: 400px;
     height: 200px;
     background: url('http://lorempixel.com/400/200/sports/1/') top left no-repeat;
     background: url('http://lorempixel.com/400/200/sports/2/') top -400px;
     display: inline-block;
    }
    #c1:hover {
     background: url('http://lorempixel.com/400/200/sports/1/') top -400px no-repeat;
     background: url('http://lorempixel.com/400/200/sports/2/') top left no-repeat;
    }
    

    ​

    http://jsfiddle.net/reCSP/

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

Sidebar

Related Questions

I'm attempting to make a drop down navigation menu with some CSS3 transitions. However,
I was attempting to make some expression templates as an answer to this question
I'm attempting to make a StateMachine execute some database action between states. So I
Greetings from some noob trying to learn JQuery, I am attempting to make it
I'm attempting to make use of the UIDocumentInteractionController mechanism in iPhone OS 3.2, but
I am attempting to make some data structures to solve a graph puzzle. I
I'm attempting to make use of configuration transformations in a continuous integration environment. I
I am attempting to make some cross-DB(SQL Server and PostgreSQL) compatible SQL. What I
I'm attempting to use Raphael to make a small game, and just want a
I'm attempting to use pyaudio to make a voice masker. With the way I

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.