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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:29:29+00:00 2026-05-17T16:29:29+00:00

I built a website recently, and decided to create buttons that depress on click

  • 0

I built a website recently, and decided to create buttons that depress on click with CSS3, pretty cool.

But is there really a valid reason to use CSS3 over a sprite, as only the modern browsers show the CSS3 buttons?

The client asked me this question, and all I could think of was less http requests, so loading would be slightly faster. I can see from a clients point of view that this is a pretty week answer.

Is there a better reason?

Or is there a fallback method that would be able to move a sprites background-position, or change the gradient and add a box shadow on a hover / focus?

Just writing that made me wonder if modernizer would be up to the challenge…

  • 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-17T16:29:29+00:00Added an answer on May 17, 2026 at 4:29 pm

    This is much more a ethical and business question than a tech question, but let’s see some points.

    First, I think your client should not get to know all tech details about implementation. He/she should know what he/she needs to know, and that’s enough.

    You shouldn’t say “I’ll make your site with CSS3, some new HTML5 elements, and nice javascript eye-candy effects” for a non-tech folk. Just say “I can make a good site for you.”

    If he question about what your are using or why your think this is a best approach, then you reply with benefits.

    It is lightweight, brings less problems with compatibility, and is easier to maintain. => Reduce time his/her client will be waiting to website load, everytbody can see it, and will cost less in the future requirements.

    CSS3 is not a new revolutionary stuff, you should face these technologies are evolutionary. All previous rules still apply, including fallback rules.

    CSS Sprites are a technique made with CSS2, thus it should work with any browser, including some old ones (not sure about IE6).

    Gradients are new. FF 3.5+, IE9 beta, Opera and webkit browsers display them. IE8 or older don’t. Some thing for box-shadows.

    For these, I just added some really simple rules as fallback.

    When I develop, I put the link to main stylesheet on page’s header, and then I use a IE conditional comment for load IE only stylesheets and scripts.

    On this IE only stylesheet, I just add the hacks or fallbacks needed to make it a little decent. You have MS filters to handle that. My IE.css stylesheet look like:

    .gradient {
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#E6E6E6', endColorstr='#fff');
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#E6E6E6', endColorstr='#fff')";
    }
    
    .boxShadow {
    filter: progid:DXImageTransform.Microsoft.Shadow(Color=#666666, direction=135, strength=5);
    -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Color=#666666, direction=135, strength=5)";
    box-shadow: 5px 5px 5px #666
    }
    

    Note that there are fallbacks rules even with these, to handle IE6, IE7 and IE8+. But it’s tiny and ensure a better display.

    Beside this I suggest you to read http://24ways.org/2009/ignorance-is-bliss

    Modernizr is a good lib, but think if you really need it. You may be end using a bulldozer instead of a spoon.

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

Sidebar

Related Questions

I have recently built a template for a website that I see looks slightly
I've built a nice website system that caters to the needs of a small
I recently made a website built over WordPress and in IE 8/9 I am
I am looking to create an admin side for my website, which is built
Has anyone built a website with IronPython and ASP.NET. What were your experiences and
I have a website built in PHP 4 with a framework made by hand
I have a website built using Asp.net and LinqToSql for Data Access. In a
I have a website I've built in VS2005, C#, .NET 2.0. This website does
So in my simple learning website, I use the built in ASP.NET authentication system.
I'm wanting to add a search box onto my website - which is built

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.