Link to home
Start Free TrialLog in
Avatar of Vontech615
Vontech615Flag for United States of America

asked on

IE9 drop shadow problem

Hi devs,
I am not a dev but I am overseeing the re-design of our company website. I know a little about css and html to understand the lingo.  

What I've requested is that our site have a drop shadow aruond the main body element.  The company that is doing the redesign is saying they can't get it working in IE9.  It shows up in Safari on an iPhone and within Chrome in Windows 7.  If I open the the dev tools (F12) within IE9 and choose Document Mode: IE9 Standards it appears.  If Doc mode is set for Quarks it breaks.

Any ideas?  Keep in mind I don't have access to the full source code just whatever I can see from the dev tools.  I can download and use any other software that might help you if need be.
Avatar of Vontech615
Vontech615
Flag of United States of America image

ASKER

Here's the site btw...
http://beta.westminstercompany.com/
ASKER CERTIFIED SOLUTION
Avatar of Kim Walker
Kim Walker
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That's odd.  Why would a web company leave this out?  Even I know you need a doctype first thing.  Is there any reason I shouldn't request they add this?
Why would a web company leave this out?
I can't imagine a reputable web company that would leave this out.
Yeah, that's what I'm thinking.  I wasn't the person to choose the company unfortunately.

Anyway, I have them add this.  Do you think this is the cause of the issue or more so in their css coding?
The CSS is very clean. I believe the doctype declaration will cause IE9 to behave in a more modern mode and render the box-shadow styling.
Avatar of Gary
xmediaman is right about the doctype.
But just use
<!doctype html>

Without the doctype the browser drops into quirks mode and not standards mode.
Gotcha, thanks guys.  I've forwarded all of this to them.  I'll keep you posted.
@GaryC123, The HTML5 doctype increases the number of HTML errors from 12 to 70. I think it's best to stick with 4.01 Transitional. Especially considering the style of HTML coding in this page (it uses tables for layout).
But we are only talking about mainly simple css fixes - which even using a loose doctype should be fixed
But anyway, leave it at that, your answer is correct.
Thanks!