Showing posts with label ie6. Show all posts
Showing posts with label ie6. Show all posts

Wednesday, September 7, 2011

CSS3 PIE

"PIE makes Internet Explorer 6-9 capable of rendering several of the most useful CSS3 decoration features."

Friday, March 18, 2011

Targeting :first-child on IE6

This article shows a way to target the :first-child pseudoclass on IE6 using an expression to check if previousSibling is null, like so:

table.mytable td
{text-align: expression(this.previousSibling==null?'center':'left');}


Another way I've found is to use the childNodes of the element's parentNode, which is useful for targeting multiple columns in a table (yes, it's a table, but it's being used to display real tabular data in the case I'm working on), and when the col tag isn't enough to style the columns:

table.mytable td
{text-align: expression(this==this.parentNode.childNodes[0]?'center':'left');}

Friday, September 17, 2010

A different IE6 transparent PNG fix

While searching for a jQuery solution for the IE6 transparent PNG issue, I came across this StackOverflow discussion that led to DD_belatedPNG by Drew Diller.  It works indeed:  on images, backgrounds, and repeating backgrounds.  Whee!  Thank you!

Wednesday, September 1, 2010

How to style for IE6, IE7, and IE8 without conditional comments

Suppose the page you're fixing is in an iframe and you're not allowed to change the HTML and can only make adjustments to one CSS file.  No conditional comments then.  Even worse, there is no DOCTYPE on the page, and so it ends up sending the browser into quirks mode.  Here's the CSS-hacky way to target specific versions of IE:
  • IE8 and below:  put a "\9" at the end of the style value
    { width:98px\9; }
  • IE7 and below:  put a "*" at the beginning of the property name
    { *width:80px; }
  • IE6:  put an "_" at the beginning of the property name
    { _width:106px; }

Tuesday, February 9, 2010

Removing the image rollover toolbar on IE6

When you hover over an image on IE6, you'll eventually see a toolbar with 4 buttons: Save this image, Print this image, Send this image in an e-mail, Open My Pictures folder.

Several ways to do it, as described here:
  • Set the galleryimg attribute to "no" on the img tag:
    <img src="blah.jpg" galleryimg="no" />

  • Site wide:
    <!--[if IE 6]>
    <meta http-equiv="imagetoolbar" content="no" />
    <![endif]-->

  • Disable it in the client IE6 browser:
    Internet options > Advanced > Enable Image Toolbar (under Multimedia)


The image toolbar was removed from IE7.

Wednesday, September 9, 2009

Background positioning for <a> on IE6, IE7

Suppose you have a link button graphic that has both the off and on states (e.g., the 50 x 50px "off" image is on the top half and the 50 x 50px "on" image is on the bottom half, resulting in a 100px-tall graphic). It's easy to style the link's hover effect by changing the background-position from "left top" to "left bottom" (also needs the link to be a block element, say display:block or display:inline-block). This works great on Firefox and IE8.

Normally, this works on IE6 and IE7 also, but make sure the <a> has the "href" attribute, otherwise these browsers won't change the background position.