Inline block doesn’t work in internet explorer 7, 6

In IE6/IE7, display: inline-block only works on elements that are naturally inline (such as spans). To make it work on other elements such as divs, you need this: #yourElement { display: inline-block; *display: inline; zoom: 1; } *display: inline uses a “safe” CSS hack to apply to only IE7 and lower. For IE6/7, zoom: 1 … Read more

Programmatically open new pages on Tabs

You can, in Firefox it works, add the attribute target=”_newtab” to the anchor to force the opening of a new tab. <a href=”https://stackoverflow.com/questions/427479/some url” target=”_newtab”>content of the anchor</a> In javascript you can use window.open(‘page.html’,’_newtab’); Said that, I partially agree with Sam. You shouldn’t force user to open new pages or new tab without showing them … Read more

Should I use single or double colon notation for pseudo-elements?

Do not use both combined with a comma. A CSS 2.1 compliant (not CSS3 capable) user agent will ignore the whole rule: When a user agent cannot parse the selector (i.e., it is not valid CSS 2.1), it must ignore the selector and the following declaration block (if any) as well. CSS 2.1 gives a … Read more

IE7 does not understand display: inline-block

The IE7 display: inline-block; hack is as follows: display: inline-block; *display: inline; zoom: 1; By default, IE7 only supports inline-block on naturally inline elements (Quirksmode Compatibility Table), so you only need this hack for other elements. zoom: 1 is there to trigger hasLayout behaviour, and we use the star property hack for setting the display … Read more

IE7 Z-Index Layering Issues

Z-index is not an absolute measurement. It is possible for an element with z-index: 1000 to be behind an element with z-index: 1 – as long as the respective elements belong to different stacking contexts. When you specify z-index, you’re specifying it relative to other elements in the same stacking context, and although the CSS … Read more

Running Internet Explorer 6, Internet Explorer 7, and Internet Explorer 8 on the same machine

I wouldn’t do it. Use virtual PCs instead. It might take a little setup, but you’ll thank yourself in the long run. In my experience, you can’t really get them cleanly installed side by side and unless they are standalone installs you can’t really verify that it is 100% true-to-browser rendering. Update: Looks like one … Read more