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

  • Home
  • SEARCH
  • 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 6056901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:25:44+00:00 2026-05-23T08:25:44+00:00

I have created a fiddle here: http://jsfiddle.net/ozzy/77dJz/ Somehow ( mind you its 4:30am )

  • 0

I have created a fiddle here:

http://jsfiddle.net/ozzy/77dJz/

Somehow ( mind you its 4:30am ) I have cocked up the hover effect on facebook link..

Twitter one works… just not sure what I have done wrong.

Any help appreciated, I am tired lol.

To Iterate:

CSS:

#facebook {
    background:url('../images/socialsprite.png') no-repeat scroll 0px 0px transparent;
    height:40px;
    width:180px;
    margin-left:10px;
    margin-top:30px;
}
#facebook:hover {
    background:url('../images/socialsprite.png') no-repeat scroll 0px -40px transparent;
    height:40px;
    width:180px;
}
#twitter {
    background:url('../images/socialsprite.png') no-repeat scroll -180px 0px transparent;
    height:40px;
    width:180px;
    margin-left:210px;
    margin-top:-40px;
}
#twitter:hover {
    background:url('../images/socialsprite.png') no-repeat scroll -180px -40px transparent;
    height:40px;
    width:180px;
}

Cheers

Need twitter and facebook sprite to sit side by side horizontally centered in the master div

  • 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-23T08:25:44+00:00Added an answer on May 23, 2026 at 8:25 am

    What you need to do is float your divs so they don’t cover each other.

    Here is some simplified CSS. Edit the margins as needed.

    #facebook {
    background:url('http://sitehelp.com.au/images/socialsprite.png') 
    no-repeat scroll 0px 0px transparent;
    height:40px;
    width:180px;
    float:left;
    margin:25px 10px;     
    }
    #facebook:hover {
    background:url('http://sitehelp.com.au/images/socialsprite.png') 
    no-repeat scroll 0px -40px transparent;
    }
    #twitter {
    background:url('http://sitehelp.com.au/images/socialsprite.png') 
    no-repeat scroll -180px 0px transparent;
    height:40px;
    width:180px;
    float:right;
    margin:25px 10px;    
    }
    #twitter:hover {
    background:url('http://sitehelp.com.au/images/socialsprite.png') 
    no-repeat scroll -180px -40px transparent;
    }
    

    http://jsfiddle.net/jasongennaro/77dJz/3/

    EDIT

    You could further simplify your CSS as follows:

    #facebook, #twitter {
    background:url('http://sitehelp.com.au/images/socialsprite.png') no-repeat scroll transparent;
    height:40px;
    width:180px;
    float:left;
    margin:25px 10px;     
    }
    #facebook:hover {
    background-position:0px -40px;
    }
    
    #twitter {
    background-position:-180px 0px;
    float:right;
    }
    #twitter:hover {
    background-position: -180px -40px;
    }
    

    http://jsfiddle.net/jasongennaro/77dJz/4/

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

Sidebar

Related Questions

I have created fiddle here: http://jsfiddle.net/ozzy/WEGMh/ How it should look is here: Issue is
I have created a fiddle here: http://jsfiddle.net/ozzy/paPRg/1/ Basically, I want to allow users to
I am new in JQ. I have created this fiddle here: http://jsfiddle.net/SZ6mY/7/ All I
I have created a fiddle to test this : http://jsfiddle.net/Ninjanoel/X6ShS/ which works fine :(
Fiddle here: http://jsfiddle.net/F6nJu/ I have a colored box: <div id=colorblock></div> #colorblock { background:#3ff; width:
Here's a fiddle where I can't get it to work http://jsfiddle.net/mjmitche/rAPcQ/22/ I have html
I have the following fiddle here: http://jsfiddle.net/9jN8L/ The idea is that sidebar will be
I've created an example here : http://jsfiddle.net/Ninjanoel/9GEGU/ Basically, I'd like to affix something to
UPDATED TO ADD FIDDLE: http://jsfiddle.net/wvUqy/6/ I have a page_action in Chrome that parses the
Consider this jsfiddle: http://fiddle.jshell.net/maple/JbEJN/show/ (this is the result window, in order for replaceState to

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.