Is there a way to disable a particular css feature for chrome / firefox












1














Is there someway I can disable a particular CSS feature for my browser so I can view how the page will look in browsers that don't support that feature?
For instance I am using CSS grid. But I want to disable CSS grid feature in my chrome/firefox so I can see how my layout will look in browsers that don't support CSS grid?










share|improve this question


















  • 1




    hope this will help you developer.mozilla.org/en-US/docs/Web/CSS/@supports
    – vssadineni
    Nov 21 at 6:11










  • I am using feature queries to check if the browser supports Grid and if not apply an alternate style. But as my browser supports grid I don't know if my feature queries are working properly.
    – Qais Palekar
    Nov 21 at 11:59
















1














Is there someway I can disable a particular CSS feature for my browser so I can view how the page will look in browsers that don't support that feature?
For instance I am using CSS grid. But I want to disable CSS grid feature in my chrome/firefox so I can see how my layout will look in browsers that don't support CSS grid?










share|improve this question


















  • 1




    hope this will help you developer.mozilla.org/en-US/docs/Web/CSS/@supports
    – vssadineni
    Nov 21 at 6:11










  • I am using feature queries to check if the browser supports Grid and if not apply an alternate style. But as my browser supports grid I don't know if my feature queries are working properly.
    – Qais Palekar
    Nov 21 at 11:59














1












1








1







Is there someway I can disable a particular CSS feature for my browser so I can view how the page will look in browsers that don't support that feature?
For instance I am using CSS grid. But I want to disable CSS grid feature in my chrome/firefox so I can see how my layout will look in browsers that don't support CSS grid?










share|improve this question













Is there someway I can disable a particular CSS feature for my browser so I can view how the page will look in browsers that don't support that feature?
For instance I am using CSS grid. But I want to disable CSS grid feature in my chrome/firefox so I can see how my layout will look in browsers that don't support CSS grid?







html css cross-browser css-grid






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 21 at 6:04









Qais Palekar

163




163








  • 1




    hope this will help you developer.mozilla.org/en-US/docs/Web/CSS/@supports
    – vssadineni
    Nov 21 at 6:11










  • I am using feature queries to check if the browser supports Grid and if not apply an alternate style. But as my browser supports grid I don't know if my feature queries are working properly.
    – Qais Palekar
    Nov 21 at 11:59














  • 1




    hope this will help you developer.mozilla.org/en-US/docs/Web/CSS/@supports
    – vssadineni
    Nov 21 at 6:11










  • I am using feature queries to check if the browser supports Grid and if not apply an alternate style. But as my browser supports grid I don't know if my feature queries are working properly.
    – Qais Palekar
    Nov 21 at 11:59








1




1




hope this will help you developer.mozilla.org/en-US/docs/Web/CSS/@supports
– vssadineni
Nov 21 at 6:11




hope this will help you developer.mozilla.org/en-US/docs/Web/CSS/@supports
– vssadineni
Nov 21 at 6:11












I am using feature queries to check if the browser supports Grid and if not apply an alternate style. But as my browser supports grid I don't know if my feature queries are working properly.
– Qais Palekar
Nov 21 at 11:59




I am using feature queries to check if the browser supports Grid and if not apply an alternate style. But as my browser supports grid I don't know if my feature queries are working properly.
– Qais Palekar
Nov 21 at 11:59












2 Answers
2






active

oldest

votes


















1














using jquery you can detect which browser is being used by the website



if($.browser.chrome) {
$('#mytargetitemid').removeClass('.cssgrid')
} else if ($.browser.mozilla) {
alert(2);
} else if ($.browser.msie) {
alert(3);
}


this code removes the class tag of that item and hence css is not applied to it :-



$('#mytargetitemid').removeClass('.cssgrid')


hope this helps, revert if any confusion






share|improve this answer





















  • I want to disable the feature from browser side. So I can test if my feature queries are working properly. For example, my current version of chrome supports grid.i have written alternate CSS as fallback if my browser is not compatible with grid it wont tottally break my site. But as my browser supports grid I don't know how to test if my feature queries are working.
    – Qais Palekar
    Nov 21 at 11:56



















0














enter image description here



you can check how many version of browsers support grid layout, compatability.



in IE browser you have the option to test as per versions but I doubt we have the same option in chrome.






share|improve this answer























  • you could check if its possible go to - chrome://flags
    – vssadineni
    Nov 21 at 12:38











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53406114%2fis-there-a-way-to-disable-a-particular-css-feature-for-chrome-firefox%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














using jquery you can detect which browser is being used by the website



if($.browser.chrome) {
$('#mytargetitemid').removeClass('.cssgrid')
} else if ($.browser.mozilla) {
alert(2);
} else if ($.browser.msie) {
alert(3);
}


this code removes the class tag of that item and hence css is not applied to it :-



$('#mytargetitemid').removeClass('.cssgrid')


hope this helps, revert if any confusion






share|improve this answer





















  • I want to disable the feature from browser side. So I can test if my feature queries are working properly. For example, my current version of chrome supports grid.i have written alternate CSS as fallback if my browser is not compatible with grid it wont tottally break my site. But as my browser supports grid I don't know how to test if my feature queries are working.
    – Qais Palekar
    Nov 21 at 11:56
















1














using jquery you can detect which browser is being used by the website



if($.browser.chrome) {
$('#mytargetitemid').removeClass('.cssgrid')
} else if ($.browser.mozilla) {
alert(2);
} else if ($.browser.msie) {
alert(3);
}


this code removes the class tag of that item and hence css is not applied to it :-



$('#mytargetitemid').removeClass('.cssgrid')


hope this helps, revert if any confusion






share|improve this answer





















  • I want to disable the feature from browser side. So I can test if my feature queries are working properly. For example, my current version of chrome supports grid.i have written alternate CSS as fallback if my browser is not compatible with grid it wont tottally break my site. But as my browser supports grid I don't know how to test if my feature queries are working.
    – Qais Palekar
    Nov 21 at 11:56














1












1








1






using jquery you can detect which browser is being used by the website



if($.browser.chrome) {
$('#mytargetitemid').removeClass('.cssgrid')
} else if ($.browser.mozilla) {
alert(2);
} else if ($.browser.msie) {
alert(3);
}


this code removes the class tag of that item and hence css is not applied to it :-



$('#mytargetitemid').removeClass('.cssgrid')


hope this helps, revert if any confusion






share|improve this answer












using jquery you can detect which browser is being used by the website



if($.browser.chrome) {
$('#mytargetitemid').removeClass('.cssgrid')
} else if ($.browser.mozilla) {
alert(2);
} else if ($.browser.msie) {
alert(3);
}


this code removes the class tag of that item and hence css is not applied to it :-



$('#mytargetitemid').removeClass('.cssgrid')


hope this helps, revert if any confusion







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 21 at 7:23









Yash Soni

47510




47510












  • I want to disable the feature from browser side. So I can test if my feature queries are working properly. For example, my current version of chrome supports grid.i have written alternate CSS as fallback if my browser is not compatible with grid it wont tottally break my site. But as my browser supports grid I don't know how to test if my feature queries are working.
    – Qais Palekar
    Nov 21 at 11:56


















  • I want to disable the feature from browser side. So I can test if my feature queries are working properly. For example, my current version of chrome supports grid.i have written alternate CSS as fallback if my browser is not compatible with grid it wont tottally break my site. But as my browser supports grid I don't know how to test if my feature queries are working.
    – Qais Palekar
    Nov 21 at 11:56
















I want to disable the feature from browser side. So I can test if my feature queries are working properly. For example, my current version of chrome supports grid.i have written alternate CSS as fallback if my browser is not compatible with grid it wont tottally break my site. But as my browser supports grid I don't know how to test if my feature queries are working.
– Qais Palekar
Nov 21 at 11:56




I want to disable the feature from browser side. So I can test if my feature queries are working properly. For example, my current version of chrome supports grid.i have written alternate CSS as fallback if my browser is not compatible with grid it wont tottally break my site. But as my browser supports grid I don't know how to test if my feature queries are working.
– Qais Palekar
Nov 21 at 11:56













0














enter image description here



you can check how many version of browsers support grid layout, compatability.



in IE browser you have the option to test as per versions but I doubt we have the same option in chrome.






share|improve this answer























  • you could check if its possible go to - chrome://flags
    – vssadineni
    Nov 21 at 12:38
















0














enter image description here



you can check how many version of browsers support grid layout, compatability.



in IE browser you have the option to test as per versions but I doubt we have the same option in chrome.






share|improve this answer























  • you could check if its possible go to - chrome://flags
    – vssadineni
    Nov 21 at 12:38














0












0








0






enter image description here



you can check how many version of browsers support grid layout, compatability.



in IE browser you have the option to test as per versions but I doubt we have the same option in chrome.






share|improve this answer














enter image description here



you can check how many version of browsers support grid layout, compatability.



in IE browser you have the option to test as per versions but I doubt we have the same option in chrome.







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 21 at 12:44

























answered Nov 21 at 12:35









vssadineni

379110




379110












  • you could check if its possible go to - chrome://flags
    – vssadineni
    Nov 21 at 12:38


















  • you could check if its possible go to - chrome://flags
    – vssadineni
    Nov 21 at 12:38
















you could check if its possible go to - chrome://flags
– vssadineni
Nov 21 at 12:38




you could check if its possible go to - chrome://flags
– vssadineni
Nov 21 at 12:38


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53406114%2fis-there-a-way-to-disable-a-particular-css-feature-for-chrome-firefox%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Wiesbaden

Marschland

Dieringhausen