HTML CSS examples for CSS Property:background-color
Placing a div with background color over slider
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .one {<!--from ww w .j av a 2s.c o m--> color:black; background-color: red; width:30%; text-align:center; border-radius:10%; position:absolute; top: -30px; left: 10px; } .wrapper { position:relative; } .one p { margin: 5px; } </style> </head> <body> <div> <a href="#" class="wrapper"> <img src="https://www.java2s.com/style/demo/Safari.png" class="u-max-full-width"> <div class="one"> <p>30%</p> </div> </a> </div> </body> </html>