It's hard for me to create clean, supported HTML / CSS code. Is there an editor, book or webpage that can help me using best practices.
Here are some examples:
Naming sections and classes: you may have an area with a user profile. What would you call id and classes? (# author_profile, .username, .userBirthday, etc.)
Tags or div: I get confused many times when you need to create your own divs or use a tag with id / class. Any good examples?
Positioning: in 99% of cases I set the fixed width of the elements and used float: left / right. Any tips for creating CSS positioning are more accessible. I tried a lot of CSS frameworks, but this did not work for me. It always ends with deeply nested divs and lots of classes.
source
share