Another IE (now 7) Hack
April 21st, 2009
Hi, i always, or 90%, talk about the Flash or Actionscript tips, classas and more, but today i have to work again with XHTML and CSS and one more time i hate the Internet Explorer – Microsoft Windows too. But well, the problem is: my css code work with Google Chrome and Mozilla Firefox but don’t in IE.
I thought to make other CSS file and import it with conditional only for IE like show my post about the CSS Conditional Comments, but searching and reading one more i saw one article that resolve my problem, use an IE7 Hack, YES! The Hack work easelly and fine like i will show.
In IE 6 to make a Hack into the CSS file you put the ‘underline’ symbol before the CSS and work fine only into the IE 6. The Internet Explorer Seven this Hack die but the IE Team forgot the *. Simple, right? You need only put the * symbol before your CSS code and work your CSS code only into the IE7.
32 33 34 35 36 37 38 39 40 41 | .scroll { height: 100px; overflow: auto; position: absolute; /* fix for IE to respect overflow */ left:50px; *left:15px; /* Hack for IE 7 */ width:630px; float:left; } |
For Firefox, Safari and Chrome you will see the left equal 50 pixels but only for Internet Explorer the left will be 15 pixels, with this you cannot create other files for your Hacks. Try it!





April 22nd, 2009 at 15:02
Really great post, thanks for the help i needed it
December 4th, 2009 at 04:19
There are another 2.4 million people who would like {nfl jerseys|mlb jerseys|nba jerseys|jerseys} a job but aren’t looking for work, either because they have given up on finding a job or have returned to school. Those people are no longer counted among the unemployed.
March 10th, 2010 at 07:15
great website! My partner and i am loving it!! Will definitely come back again – having you feeds at the same time,