# CSS Styling Conventions/Standards

**URL:** <https://www.ruby-forum.com/t/css-styling-conventions-standards/136379>\
**Category:** Rails\
**Created:** [May 1, 2008, 12:40pm UTC](https://www.ruby-forum.com/t/css-styling-conventions-standards/136379 "2008-05-01T12:40:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![T\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e0b2c6/32.png) [@T\_K](https://www.ruby-forum.com/u/T_K)\
**Post date:** [May 1, 2008, 12:40pm UTC](https://www.ruby-forum.com/t/css-styling-conventions-standards/136379/1 "2008-05-01T12:40:53Z")

</div>

Hi,

Is there any set of rule that people generally follow when they write  
CSS files?  
This question is not directly related to Rails. Yet, CSS is part of  
development.  
Some use indents to show hierarchy; other don’t. Some prefer to write  
one element  
in one line; others don’t.

Is there any particular preferences in Rails developers?

In addition, are there any Rails plugin or rake tasks to format CSS?

Cheers.

---

<div class="post-metadata">

**Author:** ![T\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e0b2c6/32.png) [@T\_K](https://www.ruby-forum.com/u/T_K)\
**Post date:** [May 1, 2008, 3:14pm UTC](https://www.ruby-forum.com/t/css-styling-conventions-standards/136379/2 "2008-05-01T15:14:23Z")

</div>

Personally, I’ve been utilizing the simple “public\stylesheets  
\app\_name.css” and including the css in my application layout file.

Mostly, higher level tags get css, and then divs and tables get it  
too. That’s about it, really.
