Last post Jan 17, 2016 06:42 AM by Fei Han - MSFT
Jan 16, 2016 06:13 AM|Nadeem157|LINK
I want different CSS for different browser.
i want the width to be 25.5% in chrome and 24.4% in IE. so what should I do
here is my html
<td id="flattdhist" runat="server" class="label" style="width: 25.5%; font-size: 120%;
font-family: Courier New; float:left;">
Flat status history
Currently it is working fine for CHROME, but in IE its slightly getting disturbed. What should I do
Jan 16, 2016 03:28 PM|mgebhard|LINK
The posted code is inline CCS in a basic HTML table. There is no code whatsoever of how the code was generated, where you're doing the browser detection, or really anything that's helpful in helping you. Like your other posts, it appears the question and
the posted code are unrelated.
Currently it is working fine for CHROME, but in IE its slightly getting disturbed.
What does disturbed mean in this context? Also, it seems rather odd to set width percentages on browser type because you would need to apply the width change to every element within a container to add up to 100%.
Jan 17, 2016 06:42 AM|Fei Han - MSFT|LINK
As far as I know, we could use conditional comments to load an IE-specific stylesheet for any version (In IE9 and lower).
besides, we could create a media query using -ms-high-contrast to create specific stylesheet for IE 10+.