- Where Developers Learn, Share, & Build Careers


I am working on some major web projects at work, and many HTML IDs and classmates are being used .

When I make something new in some of those huge projects, giving the name of the new ID and classes can be disappointing, because I always #subprojectname_title , Ends with something like this. Subprojectname_editor to ensure that I do not overwrite any classes and the ID, which was previously written for the "parent" project, and to ensure that I had previously inherited the written styles Ho.

I always create a new square or id for that subproduct when writing to subprojectname , and it troublesome enough

I have selected my selectors I am looking for tips about how to reduce, without having to reset the style to ensure that I do not inherit the previous selector, and do not mess with the first written styles

my page This is a simple solution Iojanaon.

I use "unique" names for effective styles and "local" names globally.

i.e. my site.css uses names like "defaultList" or "defaultWhiteButton", where my page uses X.css "list" and "button".

I have never used the ID for my selectors because ID

I only use classes in my CSS.

I hope it will be helpful.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -