How to Make CSS Image Sprites Responsive

Leave a comment

Using image sprites with CSS on your website can be extremely useful in decreasing load times on your website and also avoiding flickering upon hover that is often associated with using separate images. But what if your site needs to be responsive? Using a clever bit of code, we can make the background image of a div a sprite that will still work in a responsive design.

Basically all we have to do is apply a class to a div that we want to use. The background of this div will be our CSS sprite. Here would be the code:

div.sprite {

width: 20%;
height: 0;
padding-bottom: 20%;
background-image: url("images/ourimage.png");
background-position: 0 0;
background-size: 200%;


A bit of this code allows the div to maintain its aspect ratio in a responsive design, and then the background image resizes to fill it in. We determine the ratio based on the ratio of the image we are trying to display. You can find out more about maintaining the aspect ratio of an element with css here.

Then we just need to add the last bit of code to change the image in the hover state. All we need to add is this:

div.sprite:hover {

background-position: 100% 0; /* Use ONLY percents here */


Voila! That’s all you need. Note, this may not work quite right in IE8 or earlier. Everything will display, but your images won’t be the correct size most likely. Let me know if you need any more help!


How Can My Blog Stand Out In A Sea of Identical Content?

Leave a comment

There must be millions of blog posts with generic content such as “How to Leverage Facebook to Help Your Business” or “10 Ways you Use Twitter to Build Your Brand” or other similar topics. They all seem to have identical content and all appear to have been written after reading “8 Steps to Writing a Great Blog Post.” I’m not saying my posts are always revolutionary or my strategies completely original. As an aspiring blogger and social media user, I am faced every day with the challenge of sharing my experiences and insight to others in new and creative ways. My advice here is not a description of the path you must take after having been there myself. It is more my own strategy stemming from the experiences I have had and the things I have learned from others before me.

Keep in mind while reading this that writing great website content is the #1 thing you can do. So don’t just ramble on for 400 words. Truly provide fantastic, quality content that is useful to your readers. The following tips are simply additions to that advice.

Become a leader, not just a follower. There is a lot of great info out there, and a lot of it will help you in your life and in your business. But not most of it. ┬áLearn what you can from others, then collaborate with them and bring your own thoughts and ideas to the table. Don’t spend all day concentrating on the work of others. Think one step ahead of where everyone is at the moment. You can spit out the same thing in different words, but if everyone has heard it before, no one cares. Obviously you can’t just become a leader overnight, but if you have legitimately, consistently great ideas time and time again and you are active in your online community, people will recognize you for that.

Realize that posting a numbered list does not automatically make people read your content. There are a million strategies consisting of very simple things you can do in your blog that some of the great bloggers have done and found to increase their success. Do not use these unless you actually have something good to say. At best, they won’t help you at all. At worst, they will make your blog seem gimmicky and annoying. Focus on the content, ideas, and personality behind the posts rather than the gimmicky formatting and titles.

Get involved in your community of bloggers. When it comes time to sink or swim, the ones that make it out alive are those who have someone holding them up. Comment on a blog post that you think is great. Share further ideas about the topic. Make friends with the bloggers. Write your own blog post involving ideas from other bloggers, and give them credit for it. If what you are posting is worth reading, you will eventually get to the point where others in your community will be talking about it. And that is when you will really start to see success.

How to Twitter

Leave a comment

Whether you are a business executive looking to extend his online presence, or just an average Joe looking to get in on Twitter, you might be looking for those basic first steps to get involved with twitter. This is a basic Tutorial for getting those very first steps down.

How to Twitter: This should only take a few minutes.

1. Go to

2. Click the big yellow “Sign Up” button.

Click the "Sign Up" button







3. Fill out all your information, including your desired screen name. Try to find something with your real name in it, and avoid usernames with lots of numbers like mike1245. Click “Create My Account”

4. Click The Twitter Logo to go to your Twitter homepage

Twitter Logo




5. Under “What’s Happening?” type in whatever you want. Then click Tweet.

6. Congratulations, you have tweeted! Feel free to use the “search” field next to the twitter logo to find people that might interest you. Go to their profile and click the “follow” button. From now on, whenever they tweet something just like you did, you will see their tweet at your twitter home page. I have more basic tutorials to come, so go to my twitter page and click “follow” to keep up to date. I will let you know when there is a new blog post!

How to Use Facebook As Page and More

Leave a comment

Have you ever attempted to interact with users of your Facebook page and found yourself confused about whether you were interacting as your page or as your personal profile?

Facebook has recently revamped many features for Pages, and has effectively ended this confusion. One of the most useful, new features is “Use Facebook as Page”. This feature allows you to essentially “log in” AS your Facebook page.

Use Facebook As Page

Click On "Account" to open this menu

How to Use Facebook as Page

You should see the option to “Use Facebook as Page” under the drop down menu when you click the “Account” button on the top-right corner of the page.

Facebook will then prompt you to select the page you wish to use. If you have more than one page, pick the page which you wish to interact as.

You will then be logged in as your page.


Benefits of Using Facebook as Your Page

You will now receive notifications for interactions that happen on your page, just like you normally would on your personal page. Every time somebody “likes” your page or writes on your wall, you will be notified here. You can also post on other pages AS your page.

By default you will now get emailed for each notification. To disable this, go to your page, click “edit page” in the upper right, click “your settings” on the upper left, and then uncheck the box that says “send notifications to ( when people post or comment on your page.”


There is a lot more to mess around with using this new feature. I recommend “taking the tour” of the feature when you use it for the first time. Facebook will prompt you to do this. It is short and to the point, and is a great way to learn your way around!