Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with IE9 Compatability #53

Open
mgfranz opened this issue Jun 29, 2011 · 0 comments
Open

Help with IE9 Compatability #53

mgfranz opened this issue Jun 29, 2011 · 0 comments

Comments

@mgfranz
Copy link

mgfranz commented Jun 29, 2011

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant