Lisa Sabin-Wilson. Designer. Author. Espresso and WordPress addict

Mac IE – CSS

on: Nov/2/07 and its been viewed 2,891 times

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: 'Lucida Sans', Verdana, Tahoma, 'Trebuchet MS', arial, sans-serif; margin:0; background-color: #fff; background-image: url('images/bg.jpg'); background-repeat: repeat-x; background-position: top left;}

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.

;)

Posted on:November 2, 2007

Posted in: CSS, Design

Tags: , , ,

/*--- One Response to “Mac IE – CSS” ---*/

  1. hdw
    9:32 am on December 13th, 2007

    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?

Leave a Reply

  • 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;
    contact me »
    WordPress For Dummies, author Lisa Sabin-Wilson, Amazon.ComWordPress For Dummies, 2nd Ed. was released February 17, 2009. It covers WordPress.com and WordPress.Org through version 2.7 and includes comprehensive information about tweaking your own WordPress theme, creating your own theme and the basics of what you need to know about basic HTML and CSS...read more »

    BuddyPress For Dummies, author Lisa Sabin-Wilson, Amazon.comBuddyPress is the WordPress platform’s answer to community driven websites. BuddyPress is customizable and can be designed to match the style of your website through the use of CSS and understanding BuddyPress templates. BuddyPress For Dummies is available Feb. 2010 --> pre-order on Amazon today!

    • Zeke Franco: See you in Austin!
    • Lindsey: So jealous.
    • Luis: I will be in SXSW!!! I was planning to go for the music, but...
    • Kevin: Yes, babies do require a lot of work. But babies don’t...
    • Hope: hey Anjul i think your the one who needs to be in a mental...
    • Jane: I am in my 50’s and suffered mad episodes on an almost...
    • Rebecca Muller: I’m sorry to say that I’m still...
    • Betty boo: Well I have been having a very low mood for about two...
    • John: It is always the best to have as many licenses you can. You...
    • Mike: The development of wordpress.org sites using Buddypress...
    • Bourke: Brett is an all time great, however, he has had bad timing...
    • Amy: This was very helpful. I have been having trouble with little...
    • Sarah Harris: This post really reminds me of what I am going...
    • Dave: Your husband made a great choice with the Companion 5s!
    • billf: Beauty, brains AND an ear for music! Gosh, what else could a...
Get Adobe Flash playerPlugin by wpburn.com wordpress themes