HTML CSS examples for CSS Widget:Color
Color a square div with two colors
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .seat-avaliable div, .seat-not-avaliable div, .seat-badvis div{ height: 12px !important; width: 12px !important; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; cursor: pointer; } .seat-selected div{ height: 12px !important; width: 12px !important; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; cursor: pointer; background: #ffc720; border: #5e6461 solid 1px; } .seat-avaliable div { background: #05cd7a; } .seat-not-avaliable div { background: #000; border: 1px solid #333333; } .seat-badvis div { background: linear-gradient(90deg, #5e6461 50%, white 50%); } .lugares td{<!--from w w w . j a va 2 s . c om--> padding:2px!important; } .lugares { background-color: blue; } } </style> </head> <body> <table class="lugares"> <tbody> <tr> <td class="seat-avaliable"> <div></div> </td> <td class="seat-avaliable"> <div></div> </td> <td class="seat-avaliable"> <div></div> </td> <td class="seat-avaliable"> <div></div> </td> <td class="seat-not-avaliable"> <div></div> </td> <td class="seat-badvis"> <div></div> </td> <td class="seat-avaliable"> <div></div> </td> </tr> </tbody> </table> </body> </html>