Cześć,
Mam taki kod http://cssdeck.com/labs/cexmme3h potrzebuję divy 2, 4, 6 przyciągnąć do prawej krawędzi...kombinuje i nic. Gdzie tkwi haczyk?
#body {width: 650px;margin-left:auto;margin-right:auto;} #content { float: left; width: 650px; background-color: blue; position: relative; } #content .boxNews { width: 320px; height: 260px; background-color: #2EFE2E; margin-bottom:10px; float: left; } #content .boxNews:nth-child(odd){ margin-right:10px; }
#content .boxNews { width: 320px; height: 260px; background-color: #2EFE2E; margin-bottom:10px; } #content .boxNews:nth-child(odd){ margin-right:10px; float:left; } #content .boxNews:nth-child(even){ float:right; }