1

I'm having a browser compatibility issue with IE 10. To compensate for negative top margins that were pushing this div down in earlier versions of ie, I positioned the parent div relative but this fix doesn't seem to work in ie10. Here's my code:

<div class="hidden-panel">
<div class="gradient-wrap">
    <div class="calls">
      <table>
        <tr>
          <td>
            <a href="/"><img src="bully-call1.png"></a>
          </td>
          <td>
            <a href="/"><img src="bully-call2.png"></a>
          </td>
          <td>
            <a href="/"><img src="bully-call3.png"></a>
          </td>
        </tr>
      </table>
    </div>
    <div class="blue-window">
      <img src="take-pledge.png">
    </div>
</div>
</div>

and the css:

.gradient-wrap{
    padding-top: 80px;
    padding-left: 25px;
    padding-bottom: 100px;
    background: url(gradientbg.png) repeat-x;
    margin-top: -100px;
    position: relative;
}

.calls{
  width: 60%;
  }

.hidden-panel{
    background-image: url(hidden-panel.png);
    background-position: center top;
    background-repeat: no-repeat;
  }

.blue-window{
  background-color: $theme_color_6;
  padding: 45px 180px 45px 0px;
  width: 180px;
  margin: 100px auto 30px;
  }

Here's the site: http://www.thebullyproject.com/home2

4

1 に答える 1

0

理由は今のところ 100% わかりませんが、IE10 でコンテンツが押し下げられているようです。左側のパディングにも十分なスペースがないためです。

padding-left22pxonに変更する.gradient-wrapと、期待どおりに動作します (パディングが少し少なくなります)。

于 2013-04-19T00:53:51.910 に答える