I've got a problem with [display : box;]. I use this one a list:
When I compare it in firefox and IE7, as the first one give me a normal list element between space, IE7 give me a huge space between the list element. It seems that when I delete the display:box thing, the space become normal also in IE7.
Could someone tell me what's wrong with my code?
Tks in advance
(Sorry for my poor english)
mod edit/<code> tags added/tph
Please post all your HTML
Please post all your HTML and CSS, between <code></code> tags, or better yet, a link to the page.
You need to trigger
You need to trigger hasLayout for IE the anchor could do with some height, width or one of the other hasLayout triggers.
I have seen the posting of
I have seen the posting of the "trigger hasLayout for IE" , I never understood that very well, what do you mean by it Hugo?
Many (nearly most) problems
Many (nearly most) problems in IE are caused by the fact that IE requires that elements have what is known as hasLayout, this is a constuct that shouldn't exist and is a MS ballsup. Essentially it means that at times an element requires that certain properties are set and when so it tells IE how to treat the element and render it correctly, 'Triggers' are those properties that cause hasLayout == TRUE these include: Width, Height, Float, Zoom, display:inline-block, position:absolute.
If in doubt always test IE problems by using zoom:1; as a test on various elements to see if it is hasLayout that is the cause of problems.
Look for posts by Chris..S who has a link in his signature that leads to the definitive explanation and test cases for this crime against the web development world.