• Home
  • About Mitch
  • Speaking
  • Articles
  • Contact
  • Home
  • About Mitch
  • Speaking
  • Articles
  • Contact

Digital Strategist

WordPress Developer

Content Creator

Unapologetic Punk

Mitch Canter

  • X
  • Bluesky
  • GitHub
  • Twitch
  • YouTube
  • LinkedIn
Technology

Firefox 4 and CSS3

CMDR Mitchcraft

Reading time: 1 minute

Some interesting tidbits are arising now that Firefox 4 is out in the wild.  It turns out that Firefox 4 will accept both the standard and –moz specific versions of CSS3.  For example, take the following drop shadow css:

.shadow{

box-shadow: 0px 0px 12px #000;

-moz-box-shadow: 0px 0px 120px #000;

}

In the current order, the –moz statement will be the rendering statement. However…

.shadow{

-moz-box-shadow: 0px 0px 120px #000;

box-shadow: 0px 0px 12px #000;

}

…switch them around and the regular box-shadow will override.

Box shadows also follow the !important convention as well:

.shadow{

-moz-box-shadow: 0px 0px 120px #000 !important;

box-shadow: 0px 0px 12px #000;

}

Even though the normal box-shadow is on the bottom, the !important tag forces the browser to render the –moz rule.

So?

Basically, this means that Firefox will accept both arguments, but will allow you to style your code as such to continue to tweak for specific browsers.  Need one setting? use box-shadow. Need one for IE and one for Firefox? use box-shadow for IE and specify –moz for Firefox.

Box Shadow, CSS3, Firefox, IE
  • 50 Days to a Better Blog–Day 6: Quicker Blogging with Shortcodes

    50 Days to a Better Blog–Day 6: Quicker Blogging with Shortcodes

    Reading time: 2 minutes

    When it comes to blogging, one of the biggest reasons people stop is the lack of time it takes to effectively update a blog. I’m always on the lookout for tips that I can give to people to help them blog quicker without sacrificing content.

    WordPress
  • WordPress 4.1 Release Candidate Available

    WordPress 4.1 Release Candidate Available

    Reading time: 1 minute

    Just in time for Christmas, the amazing WordPress contribution team is getting geared up to release WordPress 4.1 on December 16. Right now, we can settle for the “WordPress 4.1 Release Candidate” In case you missed it, here’s what to expect from WordPress 4.1: A new theme, Twenty Fifteen. It’s more blog focused, and is very…

    WordPress