html - How to apply css logic -


this question has answer here:

i want different css different browser.

for ex:-

i want width 25.5% in chrome , 24.4% in ie. should do

here html:-

<tr>                 <td id="flattdhist" runat="server" class="label" style="width: 25.5%; font-size: 120%;                     font-family: courier new; float:left;">                     flat status history                 </td>             </tr> 

currently working fine chrome, inie getting disturbed. should do

you may need create separate stylesheet , use conditional comments each if need target specific ie version.

<!--[if ie]>  <link rel="stylesheet" href="forieonly.css"> <![endif]--> 

please refer: https://msdn.microsoft.com/en-us/library/ms537512(v=vs.85).aspx


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -