last-child not working css/html
问题 I'm trying to have a row of four divs. .frontpage { width: 240px; margin-bottom: 20px; margin-right: 50px; float: left; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .frontpage img { margin: 10px auto; } .frontpage a:last-child img { margin-right: 0; } <div class="frontpage">RETRO <br> <a href="retro/index.html"> <img src="images/name1.jpg" alt=""> </a> <p>TEXT</p> <div class="readmore"><a href="retro/index.html">READ MORE</a> </div> <div class=