Questions tagged [internet-explorer-7]

Windows Internet Explorer 7 is a web browser developed by Microsoft, released October 2006 for Windows XP and Windows Server 2003.

Internet Explorer 7 (IE7) followed Internet Explorer 6. It was offered as a replacement for the previous browser.

HTML and CSS Parsing Gotchas

  • position:relative; display:inline-block; emulates z-index:auto. Use a wrapper div to workaround this behavior

  • position:relative creates a new stacking context. Use position:static and negative margins to workaround this behavior

  • Comments between selectors will cause CSS parsing to fail:

    body > /**/ .dude, x:-webkit-any-link { color:red; }

  • Comments between HTML elements will cause :first-child to fail:

    <div><!--foo--><span>bar</span></div>

  • Using :hover on a class selector also applies it to any sibling hyperlinks:

    .dude:hover { color:red; }

    <span class="dude"></span>

    <a href="#">dude</a>

  • Every other(odd child) br element within an element whose letter-spacing is a length value will be ignored

  • Positioning in JavaScript fails when display is none or width and height are 0

  • 1px dotted borders are rendered as dashed if any of its 4 sides has a different border-width

  • Ems are buggy when used for font sizing

  • If margin-top or margin-bottom are auto, the computed value is 0

  • auto is buggy for absolute positioning

  • Negative margins need position relative

  • <label> tags need the for attribute

  • <q> does not display quotation marks

  • Clicking an image nested inside a label element does not work in IE7 and IE8

  • list-style:none does not reset list-style-image:url(foo.jpg) replaced elements; use list-style-image:url() or list-style-image:none to do the reset instead

  • :link,:visited,:hover background-color styling does not work for hyperlinked images

  • A form with 1 input for text and 1 input for a submit button will only post the input text value and not the submit value when the user hits the Enter key from the input text

  • A button element with a text node POSTs the text as part of the value field, so use input type=button instead

  • visibility:hidden causes absolutely positioned elements to ignore their relatively positioned parent

  • width:0; height:0; is inherited by children of block elements

Resources

4116 questions
339
votes
38 answers

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

Like everyone else, I need to test my code on Internet Explorer 6 and Internet Explorer 7. Now Internet Explorer 8 has some great tools for developer, which I'd like to use. I'd also like to start testing my code with Internet Explorer 8, as it will…
321
votes
7 answers

Why did the width collapse in the percentage width child element in an absolutely positioned parent on Internet Explorer 7?

I have an absolutely positioned div containing several children, one of which is a relatively positioned div. When I use a percentage-based width on the child div, it collapses to 0 width on IE7, but not on Firefox or Safari. If I use pixel width,…
Kevin Dente
  • 25,430
  • 7
  • 43
  • 47
163
votes
11 answers

IE7 Z-Index Layering Issues

I've isolated a little test case of IE7's z-index bug, but don't know how to fix it. I have been playing with z-index all day long. What is wrong with z-index in IE7? Test CSS: input { border: 1px solid #000; } div { border: 1px solid…
rezna
  • 2,243
  • 2
  • 17
  • 16
160
votes
18 answers

Debugging JavaScript in IE7

I need to debug JavaScript in Internet Explorer 7. Unfortunately, its default debugger doesn't provide me with much information. It tells me the page that the error showed up on (not the specific script) and gives me a line number. I don't know if…
alex
  • 479,566
  • 201
  • 878
  • 984
127
votes
4 answers

IE7 does not understand display: inline-block

Can someone please help me get my head around this bug? With Firefox its working fine but with Internet Explorer 7 its not. It seems not to understand the display: inline-block;. html:
lanthuong
  • 1,301
  • 2
  • 9
  • 5
117
votes
6 answers

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

Since IE7 and IE8 don't support the double-colon notation for pseudo-elements (e.g. ::after or ::first-letter), and since modern browsers support the single-colon notation (e.g. :after) for backwards compatibility, should I use solely the…
111
votes
11 answers

Programmatically open new pages on Tabs

I'm trying to "force" Safari or IE7 to open a new page using a new tab. Programmatically I mean something like: window.open('page.html','newtaborsomething');
Ricardo Vega
  • 1,945
  • 2
  • 13
  • 12
77
votes
2 answers

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

I have this CSS code with an inline-block. Can anyone tell me how to make it work in Internet Explorer 6 and 7. Any ideas? Maybe I'm doing something wrong? Thank you! #signup { color:#FFF; border-bottom:solid 1px #444; …
webmasters
  • 5,663
  • 14
  • 51
  • 78
77
votes
4 answers

JSON on IE6 (IE7)

Sorry for my inpatience but after weeks staying up late and just having put my web online, I just don't have any left energy to debug... I just can't Google how to implement JSON on IE6 & IE7... I'm using JSON.stringify(...) From what I understand…
76
votes
5 answers

How can I programmatically disable IE compatibility mode?

I have been stuck on this one for a while - I couldn't figure out why a website renders differently in two identical versions of Internet Explorer. Half an hour ago I came across a compatibility mode button in IE which made me really angry.…
user338195
76
votes
12 answers

Online Internet Explorer Simulators

(Tried to find simular questions / duplicates, failed) I develop on a mac. I love my mac. I develop using Chrome, Firefox, and Safari. I love them all for different reasons. But I have to develop for Internet Explorer users as well. I know, I am…
74
votes
6 answers

How do I force Internet Explorer to render in Standards Mode and NOT in Quirks?

I am coding a Frontend which works well in IE7 Standards Mode and IE8 Standards Mode. When I start up Internet Explorer and load the page both IE7 and IE8 go to Quirks Mode directly. How can I force both IE7 and IE8 to always load the page in…
64
votes
2 answers

IE6 + IE7 CSS problem with overflow: hidden; - position: relative; combo

So I have created a slider for a homepage, that slides some images with a title and teaser text using jQuery. Everything works fine, and I went to check IE and found that IE 6 and 7 kills my slider css completely. I can't figure out why, but for…
googletorp
  • 33,075
  • 15
  • 67
  • 82
64
votes
11 answers

What disadvantages are there to the

I started using a diagnostic css stylesheet, e.g. http://snipplr.com/view/6770/css-diagnostics--highlight-deprecated-html-with-css--more/ One of the suggested rules highlights input tags with the type submit, with the recommendation to use
Kzqai
  • 22,588
  • 25
  • 105
  • 137
61
votes
7 answers

Bootstrap dropdowns menus appearing behind other elements - IE7

I'm using Bootstrap 2.3.1 http://twitter.github.io/bootstrap/index.html So I'm using their 'dropdown-menu' class to create some simple quick use dropdown menus, but for some reason on IE7 they are appearing behind text and other elements on my…
Leon Gaban
  • 36,509
  • 115
  • 332
  • 529
1
2 3
99 100