• Home
  • Don’t Brake My Art
    • Portfolio
    • Video
  • Privacy Policy
    • Terms of Use
  • Contact
  • Featured Links
    • The Doug & Lydia Show
    • LIVE PODCAST!!
    • Doug Hawk Media
  • Favorite Links
    • Jonnie Awesome
    • The Testy Knitter
    • It’s OK I’m with the Band
    • Apocalypse & Armageddon
  • Top Categories
    • Social Media Icons
    • Photography
    • Technical Support
    • Book Reviews
  • Social Media
    • RSS Feed
    • Twitter
    • FaceBook
    • GoodReads
    • YouTube

Categories

  • Advice
  • Art
  • Book Review
  • Comedy
  • Cooking
  • Don't Brake My Art
  • Doug
  • Essay
  • Hangin' with Lydia Lee
  • Holiday
  • Interview
  • Jonnie Awesome
  • Knitting
  • Media
  • Museums
  • Music
  • News
  • Patton Oswalt
  • Photography
  • Podcast
  • Short Story
  • Social Media Icons
  • Technical Support
  • The Doug & Lydia Show
  • The Testy Knitter
  • Tutorial
  • Uncategorized
  • Versus
  • Video
  • Watercolor
  • Web Design

 

May 2013
M T W T F S S
« Mar    
 12345
6789101112
13141516171819
20212223242526
2728293031  
doug banner
jonnie banner

Rollover Social Media Icons

Posted by Lydia Lee on Jul 22, 2011

I decided to combine the idea of fixed networking icons and rollover .png images. I love rollover images because they’re interactive without the insane amount of code that usually comes with animating actions. I’ve made social media “tabs” to use for this because I’m on a bit of a tab kick lately.

The “tabs” look like this.

And here is the download for the images I use at this demo page.

download

I won’t claim to be the most astute at explaining rollover images, but the gist of it is rather simple, really.

One image file contains two images: the image you see when your mouse isn’t hovering over the image, and the image that appears while your mouse is hovering over the image, or the image “underneath” the top image. You simply write code that unveils the lower image.

First place this in your CSS document:

/*************************
HOVER TABS
**************************/
.hovertabs {
z-index: 5000;
width: 1100px;
min-height: 42px;
list-style: none;
margin-left: auto;
margin-right: auto;
text-decoration: none;
position: fixed;
bottom: 0px;
left: 5px;
}
.hovertabs ul {
list-style-type: none;
}
.hovertabs li {
float: left;
}
.hovertabs a {
display: block;
height: 0;
padding-top: 42px;
line-height: 0;
text-indent: -4000px;
background-repeat: no-repeat;
text-decoration: none;
}
li.facebooktab, li.facebooktab a {
width: 132px;
background: url(‘/images/facebook-hover.png’);
}
li.twittertab, li.twittertab a {
width: 132px;
background: url(‘/images/twitter-hover.png’);
}
li.linkedintab, li.linkedintab a {
width: 132px;
background: url(‘/images/linkedin-hover.png’);
}
li.rsstab, li.rsstab a {
width: 132px;
background: url(‘/images/rss-hover.png’);
}
li.diggtab, li.diggtab a {
width: 132px;
background: url(‘/images/digg-hover.png’);
}
li.flickrtab, li.flickrtab a {
width: 132px;
background: url(‘/images/flickr-hover.png’);
}
li.stumbletab, li.stumbletab a {
width: 132px;
background: url(‘/images/stumble-hover.png’);
}
li.sharetab, li.sharetab a {
width: 132px;
background: url(‘/images/share-hover.png’);
}
.hovertabs li {
background-position: 0px -42px;
background-repeat: no-repeat;
}
.hovertabs a:hover {
padding-top: 42px;
background: none;
}

Now add this to code to your php document. I added it in mine right after the footer div.

<div class=”hovertabs”>
<li class=”facebooktab”><a href=”your_facebook_url“>FaceBook</a></li>
<li class=”twittertab”><a href=”your_twitter_url“>Twitter</a></li>
<li class=”linkedintab”><a href=”your_linkedin_url“>LinkedIn</a></li>
<li class=”rsstab”><a href=”your_rss_feed_url“>RSS Feed</a></li>
<li class=”diggtab”><a href=”your_digg_url“>Digg</a></li>
<li class=”stumbletab”><a href=”your_stumbleupon_url“>Stumble Upon</a></li>
</div>

You’ll want to adjust the “width: 1100px;” bit depending on how many icons you use, but that’s it. Make sure your images are in the right folder, add your urls and tweak the text more to your liking, e.g. “Follow Me on Twitter”, and you’re done!

If my explanation of .png rollovers isn’t sufficient, this is a good tutorial and it will start you creating your own rollover images.

 

You may share this site's content if you link back to the original entry with credit to © Lydia Ann Lee. Merci beaucoup!


 

Unrelated posts:

Here's Spray in Your Eye!
Our Parisian Vacation, part 18
'Fatal Error' message after WordPress Upgrade
Patton Oswalt: Werewolves & Lollipops

2 Responses to "Rollover Social Media Icons"

  1. alex says:
    July 22, 2011 at 11:19 AM

    it’s good to play to the lowest common denominator on nav items. nice solution :)

    Reply
  2. Lydia Lee says:
    July 22, 2011 at 6:38 PM

    Thank you. I do enjoy the simple aspects of web design.

    Reply

Trackbacks/Pingbacks

  1. Lydia Lee

Leave a Reply

Click here to cancel reply.

De Moi

About UsThis site is dedicated to photography, watercolor art, knitted things and my Francophile tendencies. I also post light technical support ideas for neat web design tricks and fixes, and I have been known to occasionally rant about nonsense. The company name is Don’t Brake My Art. A command and a cute turn of phrase.

Search

Bookmark Me

Twitter Delicious Facebook Digg Stumbleupon Favorites More

Suivez Moi!

  • Subscribe via RSS
  • Follow my tweets

Recent Posts

  • Instagram & Etsy added to Egg Social Media Icons
  • Patton Oswalt: Werewolves & Lollipops
  • John Grafton’s kitty stories featured at The Daily Mews
  • Etsy Icon to go with Knitted Icon Bundle
  • WordPress Icon to go with Knitted Icon Bundle

Recent Comments

  • Feminism vs. Humanism: “The Same Thing”? Not According to the Dictionary… | A System of Random Tangents... on Feminism vs. Humanism
  • mamalu & lu on Gmail Icon to go with Knitted Icon Bundle
  • Rebecca Miller on Pinterest Icon to go with Knitted Icon Bundle
  • Lydia Lee on Pinterest Icon to go with Knitted Icon Bundle
  • Lydia Lee on Pinterest Icon to go with Knitted Icon Bundle

Blogroll

  • Dio Cancer Fund
  • Dudeists of the World Unite!
  • Good Reads
  • It's OK I'm With The Band
  • Juliana Martinez' Art Site
  • Juliana Martinez' Blog
  • McAfee Land
  • Plastic Fly
  • Playlist.com
  • The Lion's Den
  • Tony Gamble's YouTube Channel
  • Yoga with Mischa
SiteServices
HomeContact
BlogThe Testy KnitterPrivacy Policy
VideoDon't Brake My ArtTerms of Use
© Don't Brake My Art | All Rights Reserved | Riviera Magazine Wordpress Theme