Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
1 <!doctype html>
2 <html>
3 <head>
4 <style>
5 div {
6 position:relative;
7 padding:0;
8 background:green;
9 width: 200px;
10 height: 100px;
11 border:none;
12 text-align: left;
13 font: 12px serif;
14 }
15 div span {
16 display:block;
17 position:absolute;
18 right:0;
19 top:0;
20 width:10px;
21 height:100%;
22 background:red;
23 }
24 </style>
25 </head>
26 <body>
27 <div>
28 <span></span>
29 </div>
30 </body>
31 </html>