• 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
  • Jetpack 3.0, An In-Depth Look: New Modules, New Design

    Jetpack 3.0, An In-Depth Look: New Modules, New Design

    Reading time: 2 minutes

    Jetpack – WordPress’ popular “modular” plugin – released a major update on May 20th, and with it came a slew of major design changes and a few additions to the plugin, dubbed “Jetpack 3.0”. Those familiar with Jetpack will recognize a lot of the same great functions you know and love – just wrapped in a nice, pretty…

    WordPress
  • WordPress 2.7 is Coming To Town!

    WordPress 2.7 is Coming To Town!

    Reading time: 1 minute

    The rumors are WordPress 2.7 will be coming to a download near you sometime tonight.  Release Candidate 1 is widely successful and I’m really looking forward to upgrading to the full version.  If you’re curious as to what the future entails, here are some great posts around the Internet showcasing the new goodness: The Official…

    WordPress