Questions tagged [haslayout]

hasLayout is an IE/Win-specific element property which determines how the element is rendered by the browser. A lot of IE6/7 specific rendering problems can be solved by giving the element layout.

Reference: On having layout.

34 questions
34
votes
2 answers

Why would you use a HTML/CSS width of 99.9% instead of 100%?

I have seen many developers writing HTML or CSS inline style widths of 99.9% in places where I would use 100%. Is there any valid reason for using 99.9%? Does it have any effective difference from 100%? EDIT to retweet MSalters' very good…
Scott Stafford
  • 43,764
  • 28
  • 129
  • 177
16
votes
12 answers

Image is not clickable inside anchor only in IE7

Html Structure Some text Anchor is not clickable only in IE7, I know the issue happens because of hasLayout, if we remove height & width of the span, it…
iamjustcoder
  • 4,714
  • 10
  • 33
  • 46
9
votes
5 answers

Is it okay to use zoom:1 in my css classes?

Whenever I find IE is displaying my website weird (different from chrome and firefox), I try putting a zoom:1 in the css class for the part that is being displayed weird. A lot of the time this fixes the problem and makes it look consistent with…
Kyle
  • 21,377
  • 37
  • 113
  • 200
8
votes
2 answers

List Bullet Disappear in IE7

About So this question has been asked time and time again, but I noticed something a little different; see below. Standard Info: Bullet displays in FF Bullet does not appear in IE Finding The bullet disappears when setting a hasLayout on the
vol7ron
  • 40,809
  • 21
  • 119
  • 172
6
votes
1 answer

webkit "haslayout" bug

I have an accordion type thing that has header text. When it is open, it has one padding, and when it is closed, it has another. All of the panels start with their open styles, and then through JS, they are closed. In Chrome and Safari the header…
allicarn
  • 2,859
  • 2
  • 28
  • 47
5
votes
3 answers

IcoMoon icons not working in Internet Explorer 8

I'm using IcoMoon icons on my site and while they work perfectly in all modern browsers they don't work at all in Internet Explorer 7 and show as little boxes in Internet Explorer 8. The CSS is as follows which is from IcoMoon apart from the…
4
votes
1 answer

How to stop IE7 clearing floats because of hasLayout

I have a containing element with a number of floated elements in it. That containing element also has a percentage width value applied to it. In IE7, content following the element containing the floats is cleared because of the width value which…
Andy Hume
  • 40,474
  • 10
  • 47
  • 58
4
votes
1 answer

Can you determine hasLayout in IE8's developer toolbar?

There was a lot of talk that IE8 was supposed to fix/remove hasLayout. Doesn't seem to have happened, though it's not usually an issue. The problem is that when it does crop up there doesn't seem to be a way for IE8's developer toolbar to tell you…
user241244
4
votes
4 answers

Internet Explorer ol numbers appear at bottom of li instead of top as expected

I'm working on a page has an ol with nested p's, div's, and li's. Internet Explorer 6 and 7 both render the numbers for the ol tag after the p element at the end (at the very, very bottom of the li tag) rather than at the top of the outermost li as…
A. Morrow
  • 165
  • 1
  • 3
  • 9
3
votes
4 answers

Unclickable image inside link in IE7

Having a problem with IE7, here is explanation. HTML

Hello…

Andrey
  • 1,018
  • 12
  • 21
3
votes
1 answer

hasLayout Block vs. hasLayout Zoom

I've been going through the online reference of compass when I ran into this page: http://compass-style.org/reference/compass/utilities/general/hacks/ On this page, there apear to be 2 methods to implement a has-layout hack for IE. One of them sets…
Ruben Vreeken
  • 956
  • 1
  • 13
  • 22
3
votes
2 answers

Why does Internet Explorer need the "hasLayout" flag?

Like many developers working on web sites for Internet Explorer, I seem to come across a lot of bugs that are caused by the notorious hasLayout flag. I understand what this flag does and how it works (for the most part). A good explanation I read…
Dan Herbert
  • 99,428
  • 48
  • 189
  • 219
2
votes
2 answers

In IE only text part of link is clickable

I just noticed that in IE9 and IE8 (not in IE7) the padding around my links is not being considered part of the link (it's not clickable and my hover effects aren't being applied when it's hovered over). Only the text part of the link is working. I…
Sabrina Leggett
  • 9,079
  • 7
  • 47
  • 50
2
votes
4 answers

Why does IE (and Firefox 4) not properly wrap this? (hasLayout??)

I have the following (http://jsfiddle.net/gVZwr/4/):
Some Content Goes Here
span { display: inline-block; overflow:hidden; } in IE8/9, the label and span don't align (the label is…
user578895
2
votes
1 answer

Disadvantages when I set the zoom=1 attribute for all regarded tags of a document per default?

I develope for IE8 for a client. It happens regularly that css settings are not working (e.g. word-wrap) and when I investigate a common reason is that the hasLayout = true (resp. zoom=1) attribute is not set for the tag. I thought if I just set in…
Anja
  • 473
  • 4
  • 12
1
2 3