1,105,340 Community Members

how to detect IE11 in wordpress and change css with if statement?

Member Avatar
ultmt.punisher
Light Poster
25 posts since Nov 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I'm wondering how to detect IE11 and its version with javascript and debug my css style with jquery or by just

if(//IE11){
<style>
        #sms-cont {
        height:315px;
        }
    </style>
}

or by

if(//IE11) {
$(document).ready(function () {
        $("#sms-cont").css({
            "width": "385px",
            "height": "315px"
        });
    });
}

how to do this any idea? please help me in this , I'm stucked in very difficult situation. :(

Member Avatar
Troy III
Practically a Posting Shark
891 posts since Jun 2008
Reputation Points: 174 [?]
Q&As Helped to Solve: 119 [?]
Skill Endorsements: 10 [?]
 
0
 

Why would you need to do that?
IE11 passes the Acid3 test by 100%

Member Avatar
ultmt.punisher
Light Poster
25 posts since Nov 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
-1
 

to debug css styes.

Member Avatar
Troy III
Practically a Posting Shark
891 posts since Jun 2008
Reputation Points: 174 [?]
Q&As Helped to Solve: 119 [?]
Skill Endorsements: 10 [?]
 
0
 

if your css works on FX, and/or Ch (or similar), no 'debug' is needed since ie11 is 100% css3 conformant

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: