Title: CSS Formatting
Last modified: August 30, 2016

---

# CSS Formatting

 *  Resolved [mythusmage](https://wordpress.org/support/users/mythusmage/)
 * (@mythusmage)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-formatting-3/)
 * I’ve noticed that in proper CSS formating you get:
 * blah-blah {
    (indent) blah: blah;
 * And so on and so forth. Please add that.
 * [https://wordpress.org/plugins/custom-css-whole-site-and-per-post/](https://wordpress.org/plugins/custom-css-whole-site-and-per-post/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [kjodle](https://wordpress.org/support/users/kjodle/)
 * (@kjodle)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-formatting-3/#post-6215937)
 * re: “proper” CSS formatting:
 * CSS ignores whitespace anyway. Line returns and indents are just for the convenience
   of the coder.
 *  Anonymous User 13656824
 * (@anonymized-13656824)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-formatting-3/#post-6215996)
 * Sorry, I’m not sure I fully know what the issue is. Is the issue the lack of 
   indenting in the CSS formatting?
 *  Thread Starter [mythusmage](https://wordpress.org/support/users/mythusmage/)
 * (@mythusmage)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-formatting-3/#post-6215997)
 * The message is either, “You must indent.” or, “You don’t have to.” Until Automattic
   decides if it will adopt CSS or not I will keep my code to a minimum.
 *  [kjodle](https://wordpress.org/support/users/kjodle/)
 * (@kjodle)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-formatting-3/#post-6216002)
 * > The message is either, “You must indent.” or, “You don’t have to.”
 * That’s correct. _CSS ignores whitespace. _
 * This:
 *     ```
       .post-main {
           font-family: Ubuntu,sans-serif;
           color: #222;
           font-size: 1.1em;
           }
       ```
   
 * is every bit as correct as this:
 * `.post-main{font-family:Ubuntu,sans-serif;color:#222;font-size:1.1em;}`
 * Use whatever works for you.
 * (The second example is minimized—all the white space has been removed. There 
   are plugins that will do this for, and if you have very long stylesheets, it 
   will save some overhead on your server. That may explain where you have seen 
   examples of this.)
 * > Until Automattic decides if it will adopt CSS or not I will keep my code to
   > a minimum.
 * All themes use CSS. Whether or not it’s minimized is up to the theme designer.
   When you are creating a child theme or adding your own CSS via a custom CSS plugin
   you are perfectly free to do whatever works for you.
 *  Thread Starter [mythusmage](https://wordpress.org/support/users/mythusmage/)
 * (@mythusmage)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-formatting-3/#post-6216013)
 * Do they use CSS consistently?
 *  Anonymous User 13656824
 * (@anonymized-13656824)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-formatting-3/#post-6216017)
 * I’m not fully sure what you mean. As kjodle said it can be correctly written 
   in a number of different ways. Each plugin that you use could potentially have
   different CSS formatting, but it won’t have any effect on how it works.
 * Hope this helps.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘CSS Formatting’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-css-whole-site-and-per-post_222222.
   svg)
 * [Custom CSS - Whole Site and Per Post](https://wordpress.org/plugins/custom-css-whole-site-and-per-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-css-whole-site-and-per-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-css-whole-site-and-per-post/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-css-whole-site-and-per-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-css-whole-site-and-per-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-css-whole-site-and-per-post/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [formatting](https://wordpress.org/support/topic-tag/formatting/)
 * [indents](https://wordpress.org/support/topic-tag/indents/)

 * 6 replies
 * 3 participants
 * Last reply from: Anonymous User 13656824
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/css-formatting-3/#post-6216017)
 * Status: resolved