Solved

IE9 drop shadow problem

Posted on 2013-06-17
11
502 Views
Last Modified: 2013-06-19
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.
0
Comment
Question by:Vontech615
  • 5
  • 4
  • 2
11 Comments
 
LVL 1

Author Comment

by:Vontech615
ID: 39253095
Here's the site btw...
http://beta.westminstercompany.com/
0
 
LVL 22

Accepted Solution

by:
Kim Walker earned 500 total points
ID: 39253174
The document needs a doctype. Add the following line to the beginning of the page before the <html> tag. It should be the very first thing in the file.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

Open in new window

This tells IE which version of HTML it's dealing with.
0
 
LVL 1

Author Comment

by:Vontech615
ID: 39253201
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?
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 22

Expert Comment

by:Kim Walker
ID: 39253212
Why would a web company leave this out?
I can't imagine a reputable web company that would leave this out.
0
 
LVL 1

Author Comment

by:Vontech615
ID: 39253244
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?
0
 
LVL 22

Expert Comment

by:Kim Walker
ID: 39253342
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.
0
 
LVL 58

Expert Comment

by:Gary
ID: 39253354
xmediaman is right about the doctype.
But just use
<!doctype html>

Without the doctype the browser drops into quirks mode and not standards mode.
0
 
LVL 1

Author Comment

by:Vontech615
ID: 39253377
Gotcha, thanks guys.  I've forwarded all of this to them.  I'll keep you posted.
0
 
LVL 22

Expert Comment

by:Kim Walker
ID: 39253385
@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).
0
 
LVL 58

Expert Comment

by:Gary
ID: 39253650
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.
0
 
LVL 1

Author Closing Comment

by:Vontech615
ID: 39259404
Thanks!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Obtaining data on ASP 8 28
check a checkbox of a checkboxes group in bootstrap 2 39
Change box shadow 1 29
How to make a good PHP + MySQL + JS pagination system? 3 31
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question