Determine the browser type and then add the CSS links for those browsers. You can determine the browser using
Request.Browser.Browser
. For more on
Request.Browser
[
^] object please refer to MSDN.
@if(browser == "IE") {
} else {
}
For detailed documentation about browser capabilities and getting them in ASP.NET, refer to this documentation:
https://msdn.microsoft.com/en-us/library/3yekbd5b.aspx[
^]
Another way is by using the IE hacks, in which you add the CSS in a comment and is added to the IE only. But that is a hack, so do not use it. Anyways, here is the link for that.
https://css-tricks.com/how-to-create-an-ie-only-stylesheet/[
^]