Yussi Ariefiyono
CSS hack list
well these hacks actually really work, i tested it myself.
For one CSS file:
- /*IE7 HACKS*/
html > body #ie7 {background-color:#f00;} - /*IE6 HACKS*/
* html #ie6 {background-color:#0f0;} - /*IE HACKS*/
#ie6 {background-color:#00f;} - >FF1.0
#hackme, x:-moz-any-link {styles for Firefox 1.0 here}#hackme, x:-moz-any-link, x:only-child {restore normal styles for newer versions} - >FF2.0
#hackme, x:-moz-any-link {styles for Firefox 2.0 here}
#hackme, x:-moz-any-link, x:default {restore styles for Firefox 3.0 and newer}
For seperate Css files:
- For IE:
<!–[if IE]>
<link rel="stylesheet" href="ie7.css" type="text/css" media="screen" />
<![endif]--> -
Non IE:
<!--[if !IE]>-->
<link rel="stylesheet" href="default.css" type="text/css" media="screen" />
<!--<![endif]-->
List from friends:
1. Thomas ( thank man
)
getting transparent div backgrounds working in all browsers
* html #overlay{
background-color: #333;
back\ground-color: transparent;
background-image: url(img/blank.gif);
filter: progid: DXImageTransform.Microsoft.AlphaImageLoader(src="img/overlay.png", sizingMethod="scale");
}
list of resource:
- http://www.puidokas.com/efficient-conditional-comments/
- http://pornel.net/firefoxhack
- http://www.webdevout.net/css-hacks#unrecommended-body_empty
i will update the list if i found one
. any help for updating would be nice
| Print article | This entry was posted by yussi ariefiyono on May 16, 2008 at 11:05 am, and is filed under css. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 3 years ago
CSS "Cascading Style Sheets" Lessons
css list style Properties and examples — http://css-lessons.ucoz.com/list-css-examples.htm
about 3 years ago
one i use a lot for getting transparent div backgrounds working in all browsers
* html #overlay{
background-color: #333;
back\ground-color: transparent;
background-image: url(img/blank.gif);
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="img/overlay.png", sizingMethod="scale");
}
about 3 years ago
hmz whats with the smily in there ^_-
should be filter: progid: DXImage
without space ofc…
about 3 years ago
hahahah ok i will add it to post.
normally i use javascript to make it transparent .. but hey its working!!! thank thomas
about 3 years ago
your welcome