div.italy{ position: relative; border: 1px solid #333; width: 18ex; height:12ex; } div.italy div{ position: absolute; width: 6ex; height: 12ex; } div.italy div:first-child{ top:0; left: 0; background: #297f3e; } div.italy div:nth-child(2){ top: 0; left:6ex; background: #ffffff; } div.italy div:last-child{ top: 0; left:12ex; background: #d63b3b; }