overwrite a CSS rule - HTML CSS CSS

HTML CSS examples for CSS:Introduction

Description

overwrite a CSS rule

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
#test {<!--from   w  w  w. j a  v a 2  s  .  c o m-->
   background:url('https://www.java2s.com/style/demo/Google-Chrome.png');
   height:51px;
   width:51px;
}

#test {
   overflow:hidden;
   position:relative;
   background:none;
}
</style> 
 </head> 
 <body> 
  <div id="test"> 
  </div>  
 </body>
</html>

Related Tutorials