<commit_before>---
  title: Units
  section: 2.3
  date: 2015-02-03 00:00:00
  published: false
---

## CSS Units<commit_msg>adding units page<commit_after>---
  title: Units
  section: 2.2
  date: 2015-02-02 00:00:00
---

## CSS Units

### Space after commas

Commas in lists must be followed by a space.

##### Bad

```css
color: rgba(0,0,0,0.1);
```

##### Good

{% highlight css %}
color: rgb(255, 255, 255);
{% endhighlight %}


### Zero Units

Don't use units (px, em, rem...) on `0` values. They're unnecessary. `margin: 0px;` vs `margin: 0;`
{'fraction_non_alphanumeric': 0.1912568306010929, 'fraction_numerical': 0.08925318761384335, 'mean_word_length': 3.296875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7016986', 'n_tokens_mistral': 257, 'n_tokens_neox': 204, 'n_words': 65}