Smartik saidI prefer dashes for a few reasons:
@fitwp, some rules there are just ridiculous. Why shouldn’t I use underscores to define selectors? I like using underscore, because the whole selector is selectable and I will never change this. Seriously.
An interesting bit of trivia, the original CSS spec did not allow underscores: https://developer.mozilla.org/en-US/docs/Underscores_in_class_and_ID_Names
- They don’t require the shift key to type
- They match the style of the CSS specification (:first-child, text-decoration, etc)
- You can use the |=value operator to match attributes beginning with “value” or “value-”
+1, there’re some discussions about this that might help:http://stackoverflow.com/q/7560813/371240 http://programmers.stackexchange.com/q/141988
By the way, coding standards is not something that forces you to follow. You can have your own style, that’s totally ok. Just keep it consistent, that’s more important.
Stunning! Maybe good for portfolio showcase
If you’re making WordPress theme, you should follow this guide:http://make.wordpress.org/core/handbook/coding-standards/css/
Before building a theme, I built for my own a framework (theme options, meta box, shortcode generator) and that reduced time while working on theme. For my first theme, after design is done, it took me 1 month to convert design to WordPress theme. That’s a simple & clean corporation theme.
Just another note: time for setting up the demo and writing documentation is quite long, too (if you’re truly serious about this).
That’s really amazing! Congratulations!
Congratulations! We also reach 300 sales for 1st item today!
Here is the trends made by Google: http://www.google.com/trends/explore#q=wordpress%2C%20modx&cmpt=q
Today is great day for us when we finally get 300 sales for our first item on ThemeForest! Thank you all buyers, thank all friends We’ll keep making it better and better!