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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:51:47+00:00 2026-05-25T01:51:47+00:00

For my mobile-desktop nav-bar I have background buttons (default). On top I’m using :after

  • 0

For my mobile-desktop nav-bar I have background buttons (default). On top I’m using :after to insert an element with background (plain grey) which on hover changes to (lt. blue) and content( url(image.alpha-png) ) or -webkit-mask-image.

I’m looking for a way to show nothing (=default background image) on browsers/devices not supporting :after or not being able to handle -webkit-mask-image.

I got it to work for pseudo-classes by removing fallback background-colors (takes care of IE 7,8)and now I’m looking for a away to not show the the gray/blue background on browsers/devices that don’t support -webkit-mask-image (or their not working -o/-ms/-moz-equivalents)

Here is some code:

HTML:

<p class="test">target</p>

CSS (I left away the gradient and mask CSS for all other browsers):

 .test    { position: relative;}
p.test:after  { width: 30px; height: 30px; position: absolute; 
                top: 0; bottom: 0; left: 0; right: 0; content: "";
                -webkit-mask-image:      url("../../../IMG/gen/testsprite.png");
                -webkit-mask-position:   -60px -15px;
                -webkit-mask-repeat:     no-repeat;
                -webkit-mask-size:       150px 45px;                    
                background-image: -webkit-linear-gradient(bottom, #ccc, #333);
              }
p.test:hover:after  {
               -webkit-linear-gradient(center top, rgba(68,213,254,.0) 0%, rgba(68,213,254,.0) 23%, #44D5FE 100%), 
               -webkit-radial-gradient(100% 320%, circle farthest-corner, #317BDC 65%, #317BDC 78%, rgba(49,123,220,.0) 80%), 
               -webkit-radial-gradient(40% 190%, circle farthest-corner, #7DAAE7 30%, #E6EEFA 90%), url("../../../IMG/gen/fallback_active.png");
              }

As -webkit is the only vendor providing a image-mask, I’m looking for help on:

  • hiding the background-gradients on non webkit devices
  • providing some info on a good alternative for FF, Opera…
  • opinion on whether it would make sense to switch image-mask for alpha-png, which means having to create a “negative” of my CSS-sprite

Thanks for help!

  • 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-25T01:51:48+00:00Added an answer on May 25, 2026 at 1:51 am

    Ok. Only webkit supports image-mask so to get a masking-effect you can either use

    a) SVG images = you will need the SVG plugin to be loaded in IE
    b) Cutout PNG images

    I went with cutting out png shapes from a background-image

    Example see here

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

Sidebar

Related Questions

I'm trying to make a cross browser CSS nav-bar for mobile and desktop using
I can browse using the desktop browsers via ..localhost:54647/... and from windows mobile emulators
I have a Windows Mobile Desktop Application that have some text fields which will
I am creating a site which will have a desktop and a mobile theme.
While porting a desktop application to windows mobile I've reached the following error: Error
Virtualizing the mobile is way different from virtualizing the server or the desktop, where
Windows Mobile devices have different behaviour for suspending when the device is on battery
In mobile, the internet is slow. If I have a list of 500 images,
at first i thought with Titanium, i can develop for Mobile and Desktop over
Im wondering how it would be possible to synchronize desktop and mobile application. For

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.