• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

My Monkey Do

A Log of Coding Solutions

  • Home
  • Web Hosts
  • Tools
  • About

IE crap

No Shadow in Internet Explorer

December 30, 2011 by Webhead

Who Will Cry When You Die?

 

Problem

I need some shadows using CSS in the non-modern browsers IE 7 and IE 8.  I found that it can be done with the filter attribute using the following code:

  .shadow {
	/* For IE 8 */
	-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=135, Color='#444444')";
	/* For IE 5.5 - 7 */
	filter: progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=135, Color='#444444');
}

 

However, when I apply this to one of my existing elements, it does not show.  WHY?

 

Solution

If you look in the IE Developer Tools, you’ll see something funny.  You’ll probably see that if your existing element already uses a filter like maybe a gradient.  You’ll see that either the gradient or shadow filter will be overwritten.  So basically, you can’t have one filter (like shadow)  in one CSS class and another filter (like gradient) in another css class and use them on the same html element.  They will overwrite each other like any other CSS attribute.  Good job Microsoft!

So what you have to do is just append the filters like so:

 

 

 

	/* For IE 8 */
	-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#4CA4BE', endColorstr='#37819B');progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=135, Color='#444444')";
	/* For IE 5.5 - 7 */
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4CA4BE', endColorstr='#37819B') progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=135, Color='#444444');

 

 

Filed Under: Coding Tagged With: css, IE crap

IE z-index

December 14, 2011 by Webhead

Z-Index troubles for IE.    From what I got from the link below… don’t use position:relative as much as possible.  Once you use position:relative, it puts the element and all it’s children onto another stack and z-index will not work.

As far as I know this applies to IE 7 and earlier.  IE 8 seems to work similar to Firefox.  Can’t wait til the day IE 7 is dead.

 

searched:  ie z-index not working
source:  http://www.webmasterworld.com/css/3716455.htm

 

 

 

 

 

 

Filed Under: Coding Tagged With: css, IE crap

Multiple Versions of IE

September 26, 2011 by Webhead

Every version of IE requires its own special little hack to make it look how it’s supposed to.  Developers can go crazy trying to fix an issue for a version of IE that only their client has.  To make things worse, you cannot install more than one version of IE on Windows.  That’s just Microsoft saying, “Spend hours and hours fixing your site for our product so we can further our profits while you rot in or discharge”.  But aha!  There is such a way to have multiple versions of IE.  Thank you!

http://www.askvg.com/how-to-run-multiple-internet-explorer-versions-simultaneously/

Filed Under: Off the Shelf Tagged With: IE crap

apos in IE – no work!

September 18, 2011 by Webhead

There is nothing so irritating as somebody with less intelligence and more sense than we have

– Don Herold

Problem

Microsoft Internet Explorer is displaying ' while other browsers are displaying a single quote.

Solution

IE has apparently decided to follow standards on this rule, but once again didn’t follow the crowd.  ' is not in the HTML 4 standards.  So instead use '.

 

Source: http://nedbatchelder.com/blog/200703/random_html_factoid_no_apos.html
search terms used:  ie '


Filed Under: Coding Tagged With: html, IE crap

Caching Issue

September 1, 2011 by Webhead

Problem:

Changed a javascript file, but the browser still detects it.  Take out the javascript file, and the page still runs fine as if it is there.  This is occurring in IE.

Solution:

  1. Hit f5 a million times.  Clear the browser cache.
  2. Close browser
  3. Open browser

Filed Under: Coding Tagged With: IE crap, javascript

IE Takes Time

September 1, 2011 by Webhead

IE has officially forced me to spend 50% more time to complete a project.  Bugs, workarounds, special IE filters, all contributed to the time.  The last 3 or 4 projects, I tracked my hours spent on IE.  Maybe Microsoft secretly hates other developers.

I have a new example demonstrating a few HTML 5 features like:

  • gradient
  • vertical text
  • shadow

Of course, IE is not yet a “modern” browser so it needs to use it’s little “filter” hack.  Leave it to IE to have a bug in it’s own hack.  Gradients and Shadows cannot be shown at the same time.  I haven’t really found a workaround yet.

http://mymonkeydo.com/example/chart_gradient_vtext_shadow.html

Filed Under: Random Thoughts Tagged With: css, html 5, IE crap, jquery

  • « Go to Previous Page
  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to page 4
  • Go to page 5
  • Go to Next Page »

Primary Sidebar

Topics

apache apple block editor chrome cms css debug eCommerce embed firebug firefox git gmail goDaddy google hosting htaccess html html 5 IE crap image iPad iPhone javascript jquery linux localization mac os x ms sql mysql open source optimize php php 5.3 responsive rest api seo svg tinymce woocommerce wordpress wpengine xss yii youtube




Categories

  • Coding
  • Off the Shelf
  • Plugins
  • Random Thoughts
  • Server Stuff
  • Tools