# What is the recommended way of structuring CSS? [closed]

I have the following CSS:

.class {
margin: 1%;
margin-left: 0;
}


I wonder whether another way would be better?

Option a)

.class {
margin: 1% 1% 1% 0;
}


Option b)

.class {
margin-top: 1%;
margin-bottom: 1%;
margin-right: 1%;
}


Option ...

Any other recommended ways?

• You're really supposed to include the entirety of your code in your question, not just a section. Mention in the text of your question, the section you want evaluated. – Snowbody Apr 9 '15 at 13:05
• Option B is different, but we cannot say which is better without more context. – 200_success Apr 9 '15 at 13:21
• entirety of your code I have 258 lines .less - that are totally irrelevant. The only relevant part is how to structure the CSS above. – Mars Robertson Apr 9 '15 at 13:29
• what are you trying to accomplish with this bit of code? what HTML does it affect for such purpose? is this the only class on the elements that you are styling? your question is too broad. – Malachi Apr 9 '15 at 14:08

.class {

Note that "option b" might not do the exact same thing, as it lacks margin-left: 0; which means that the margin-left can be applied from elsewhere.