Title: Any CSS coding guidelines?
Last modified: August 18, 2016

---

# Any CSS coding guidelines?

 *  [mloskot](https://wordpress.org/support/users/mloskot/)
 * (@mloskot)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/any-css-coding-guidelines/)
 * Hi (first time),
 * I’d like to ask for any coding guidelines for CSS for new themes.
    Are there 
   any? Second, is there any list of class/ID names (reference or recomendation)
   which theme developer should use?
 * As far as I know, every developer is allowede to use his own CSS elements and
   names which are used by his theme.
 * i.e. CSS ID for header block (div) is header, if someone is going to use horizontal
   navigation bar, then ID navbar is defined for that block.
 * I hope I’m clear.
 * Cheers

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

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/any-css-coding-guidelines/#post-250075)
 * Loads !
    [http://codex.wordpress.org/Blog_Design_and_Layout](http://codex.wordpress.org/Blog_Design_and_Layout)
 *  Thread Starter [mloskot](https://wordpress.org/support/users/mloskot/)
 * (@mloskot)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/any-css-coding-guidelines/#post-250097)
 * I know this resource. I’ve asked for similar reference to Template Tags but for
   CSSs, you know.
    Cheers
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/any-css-coding-guidelines/#post-250098)
 * I don’t know of any strict (WP) guidelines regarding css or naming the divs. 
   As far as it’s in the limits of the common sense (e.g. the examples you gave 
   in the OP) I guess it’s fine.
 *  [tomhanna](https://wordpress.org/support/users/tomhanna/)
 * (@tomhanna)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/any-css-coding-guidelines/#post-250101)
 * If you intend to release the theme, just comment it if it’s not completely apparent
   by the name. (Header is pretty obvious, for example.)
 *  Thread Starter [mloskot](https://wordpress.org/support/users/mloskot/)
 * (@mloskot)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/any-css-coding-guidelines/#post-250207)
 * Thank you very much, that’s answer I was looking for 🙂
 * Cheers

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

The topic ‘Any CSS coding guidelines?’ is closed to new replies.

## Tags

 * [conventions](https://wordpress.org/support/topic-tag/conventions/)
 * [guidelines](https://wordpress.org/support/topic-tag/guidelines/)
 * [naming](https://wordpress.org/support/topic-tag/naming/)

 * 5 replies
 * 4 participants
 * Last reply from: [mloskot](https://wordpress.org/support/users/mloskot/)
 * Last activity: [20 years, 9 months ago](https://wordpress.org/support/topic/any-css-coding-guidelines/#post-250207)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
