开发者

inline block ie7 on h2

I think im going to kill someone high up in microsoft very very soon:

Please can someone help me get my head around this bug: http://www.yellostudio.co.uk/tm/selection.html#

I'd like the top h2 to display inline block alongside the help icons on the right.

The issue only exists in ie7 and its doing my sweed in...

Any help would be very very much ap开发者_StackOverflow中文版preciated


I would do float: left on this H2 instead of display-inline and clear: both on form beneath it. Or if there can be different content after H2 then clear:both on everything that will be directly after your icons:

#help-icons + * {
  clear: both;
}

It works for IE7 also.


Probably not the best practiced way, but why not use a class instead of an h2?

.h2class 
{
    /*styles here*/
position:relative;
top:0px;
left:100px; /*use px value that lines it up where you want*/
display:inline-block;/* since IE7 only allows this for naturally inline elements*/
}

<span class="h2class">My Selections</span>

Might work...


try this

display: -moz-inline-stack; // for FF2
display: inline-block;
zoom: 1; // HASLAYOUT
*display: inline; // LTE IE7
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜