Create Html flag background - HTML CSS CSS Property

HTML CSS examples for CSS Property:background

Description

Create Html flag background

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style type="text/css">
#black, #red,#gold {<!--from   w w w .  ja  v  a2 s .c  o  m-->
   width:151px;
   height:26px;
}

#black {
   background:black
}

#red {
   background:red
}

#gold {
   background:gold
}
</style> 
 </head> 
 <body> 
  <div id="black"></div> 
  <div id="red"></div> 
  <div id="gold"></div>  
 </body>
</html>

Related Tutorials