Skip to content

Help with IE9 Compatability #53

Description

@mgfranz

This code works fine with FF and other versions of IE, but with IE9 it does not round. First I test version and then set parameters;

<script type="text/javascript"> if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x; var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number if (ieversion <=6) $(document).ready(function(){ $("div.rounded").corner('top 10px') }); else if (ieversion>=7) $(document).ready(function(){ $("div.rounded").corner(); $(".content").corner('bottom 10px'); }); } else $(document).ready(function(){ $("div.rounded").corner(); $(".header").corner('top 10px') $(".content").corner('bottom 10px'); }); </script>

Then I use the 'div' tags to control layout;

//<div class="rounded" style="background:#BFB28D; padding:1px;">
                //<div class="header" style="padding:5px; white-space:nowrap; background-image: url(../Templates/images/red.jpg);">  Videos </div>
                //<div class="content"> Links to other stuff here... </div>

So basically I use a background image in the "header" div, but in IE9 the div's are square. Link to test page, http://www.mgfic.com/default.aspx

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions