Thread: Design Troubles
View Single Post
  #6 (permalink)  
Old Apr 25th, 2005, 14:33
cromlech cromlech is offline
New Member
Join Date: Apr 2005
Location: Oslo, Norway
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
If you want to feed padding only to IE, just use the selector that only IE is stupid enough to read the contents of:

* html <your element> {
padding: 3px 0 0 0;
}

It's a valid selector, allthough most browsers will understand that it doesn't actually describe any element at all seing as html may never have a parent. IE (6, 5.5, 5) on the other hand sees this as html <element>. Handy and valid trick!