internet explorer - different css for ie, not working -


i have tried simple code, dont know why not working , may small mistake gave up, please help

my ie version 8.

here code

         <!doctype html>          <head>           <!--[if gte ie 8]> <link type="text/css" rel="stylesheet" href="ie.css" />             <![endif]-->            </head>        <body>            <div class="u">             xyz            </div>          <style scoped>             .u{       background:red;       }       </style>           </body>          </html> 

ie.css

           .u{background:green;} 

the issue here redeclaring css.

in above code, specifying:

for ie: set background green. all: set background red. 

place ie css below generic css take precedence.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -