<div id="india"></div>
Here is the CSS:
#india { width: 99px; height: 75px; text-align: center; line-height: 50px; margin: 10px; position: relative; background: #fff; } #india:before { content: ""; position: absolute; left: 0; bottom: 0; top: 0; background: orange; width: 100%; height:25px; } #india:after { content: ""; position: absolute; right: 0; bottom: 0; top: 10; background: green; width: 100%; height:25px; }
Here is the demo
No comments:
Post a Comment