View Single Post
12-02-2011, 04:12 AM
#1
jasonm56 is offline jasonm56
jasonm56's Avatar
Status: I love this place
Join date: Jun 2007
Location: Minneapolis
Expertise: xhtml/css, jquery, php, mysql
Software:
 
Posts: 533
iTrader: 1 / 100%
 

jasonm56 is on a distinguished road

Send a message via MSN to jasonm56

  Old  Is this good column css structure?

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)?