How to change margin-left of elements that are close to the left edge

BABYduNET

New Member
Here is what I'm trying to do:I have a wrapper box \[code\].box-body\[/code\] and I want to change \[code\]margin-left\[/code\] to \[code\]0\[/code\] of all elements that are close to the left edge.In my example on http://jsfiddle.net/8NXMq/6/ I want boxes with \[code\]views.py\[/code\] and \[code\]context_processors.py\[/code\] to have \[code\]margin-left: 0\[/code\], but the rest keep the same, I was thinking to create additional class and just override this property, but that's not what I want to do, because I don't know the number of boxes that i will have it could be 7, could be 20 .... plus if you resize the window number of box in one row will change.here is css:\[code\].box-body { background: #ddd; width: 700px; height: 300px}.app-file { position: relative; float: left; margin: 10px 0 0 14px; display: inline-block; padding: 10px 18px 10px 18px; text-align: center; font-size: 16px; cursor: pointer; background: rgba(255,255,255, 0.9); color: rgb(68,68,68);}\[/code\]
 
Back
Top