There are two means of refuge from the miseries of life: music and cats. ~Albert Schweitzer

Mac IE - CSS

i wrote this on November 2nd, 2007 at: 2:22 pm and its been viewed 1,667 views

Just a quick note for anyone else who may run into this problem. I recently had someone contact me at E.Webscapes looking to hire me to troubleshoot and fix a problem they were having with the display of their custom theme on their site. I wasn’t the original designer of the theme, but the person who contacted me said that the original designer didn’t know how to fix the problem.

The problem? The site displayed fine in Internet Explorer, FireFox, Safari, Opera and Netscape. I say it displayed fine in Internet Explorer… on a PC. But, in Internet Explorer on a Mac? No dice. The issue is - none of the images displayed on their site. I don’t mean images they uploaded in their posts - - I mean the theme images; like the background image, header image, etc….from their stylesheet.

I took a quick look at the first line of their CSS:

body {font-size: 100%; font-family: 'MµçV6–F6ç2rÂfW&FæÂF†öÖÂuG&V'V6†WBÕ2rÂ&–ÂÂ6ç2×6W&–c²Ö&v–㣲&6¶w&÷VæBÖ6öÆ÷#¢6ffc²&6¶w&÷VæBÖ–ÖvS¢W&‚v–ÖvW2ö&ræ§rr“²&6¶w&÷VæB×&WVC¢&WVB׃²&6¶w&÷VæB×÷6—F–öã¢F÷ÆVgC·ÓÂö6öFSà

The problem? It’s the quotes around the call to the image:

... background-image: url('images/bg.jpg');...

Remove the quotes and you’ll be fine in Internet Explorer on a Mac.

Image calls in CSS do not need quotes…. double quotes or single quotes - - they’re unecessary and you don’t need them. IE Mac will not like it (I *think* this is an IE5 Mac thing.. but to be sure, just leave out the quotes and you’ll be safe).

I could have charged this person my regular hourly fee and gone in and removed the quotes from every image call in their stylesheet. Seeing as how I’m too nice for that - - I just emailed them and told them what to do. Within the hour, I got an email back with their thanks and undying gratitude. Works for me!

Since I’m in a sharing kind of mood - I figured I’d take advantage of the nice mood and share it here with you. Catch me in another hour and I might be all cranky again.

;)




Tags: , , ,


One Response to “Mac IE - CSS”

  1. 1
    hdw Says:

    Thanks for the tip, that would have taken me a while to find. As a designer, I can see why you’d test that sort of thing, but why else would you use IE on a Mac?

This site uses Gravatars - get one to display your own picture!

Join My Community at MyBloglog!
Add to Technorati Favorites
Lisa Sabin-Wilson's Amazon.com WishList
View Lisa Sabin's profile on LinkedIn
Find Lisa Sabin-Wilson on Twitter
Lisa Sabin Wilsons Blog Feed
Li-sa Sa-bin Wil-son: [lee-suh sey-bin will-sun] - pronoun; 1. A wife, mother & friend; 2. Blog Designer & WebHost; 3. Author of WordPress For Dummies; 4. Scuba diver; 5. Downhill Skier; 6. Am. Photographer; 7. Espresso sipper; 8. quote collector
WordPress For Dummies, author Lisa Sabin-Wilson, Amazon.Com WordPress For Dummies, by Lisa Sabin-Wilson, delivers just what would-be bloggers need to get up and running with WordPress and start communicating with the world. Includes help on every aspect of installing and using WordPress, illustrations from real-world WP blogs, step-by-step tutorials on key topics, and insights from bloggers who use WordPress.....Read More About It »

Acknowledgements | Forward | Table of Contents | Chapter One
Buy @ Amazon | Buy @ Barnes and Noble

  • This is just a test post. Testing from my new smartphone. Will check when I get home. In the meantime....happy April!

    - #
  • Look for an update to the WordPress For Dummies book that will include what's new and exciting in the newest version of WordPress 2.5. This will be available in a free, downloadable PDF document both here, on my site, as well as Dummies.com. Will keep you posted!

    - #
  • Charles Stricklin hosts the popular WordPress podcast over at http://wp-community.org. I was interviewed for this weeks episode, which you can listen to right here. Thanks, Charles, for being a great host!

    - #
  • Wanna peak at the new design for the WordPress Administration Panel coming soon when version 2.5 is released in March?? I posted a review of it here - have a looksee, tell me what'cha think!

    - #
  • Just put up a job posting looking for a part-time designer at E.Webscapes. Interested? Or know someone who might be? view details of the job post right here

    - #