How to move all divs by 1px to the left?
问题 I want to do something like this: .cont{position:relative;display:inline-block;} .cont:nth-child(2) {left:-1px} .cont:nth-child(3) {left:-2px} .cont:nth-child(4) {left:-3px} .... .cont:nth-child(n) {left:-5px} I want to collapse the right div of each cell. Something similar to this question : collapse border + change the color of the border on hover + border radius? My HTML: .main {display:inline-block;border:1px solid #000} <div class="main"> <div class="cont">abc<div> <div class="cont">def