I haven't been doing any css work in the last year or so and I started doing some websites with a ton of columns. I was wondering if my code would be considered good/clean. Is this an industry standard or could it be made better/more compatible?
Code:
.col3, .col3_last{
width: 320px;
height: 160px;
background: #ccc;
float: left;
}
.col3 {
margin: 0 10px 10px 0;
}
Now my reasoning is that there will be 3 col in a row. I want to have the 10px spacing between col 1&2 and another 10 between col2&3. I DO NOT want the last col in each row to have 10px margin.
What would you change? What is the industry standard for naming columns these days (I never had a formal way of naming them)?