Tips to Improve Your New CSS Codes

It is quite saddening how a lot of people label themselves as web designers but are not even knowledgeable with manual coding of CSS and HTML. This is a big irony, considering how coding CSS and HTML is expected to be part of the skill set of web designers.

The truth is it is not really difficult to master how to write cascading style sheets. But, things could get very daunting if you will use it for a big project without adhering to a defined approach every time you write the code.

Improving your new CSS codes for readability, maintainability, and speed can give you lots of benefits in the long run, whether you are designing your own website or others’ websites.

Below are some useful tips on how you can write easy to manage new CSS codes:

Wix

Stick with Useful Naming Conventions

See to it that the names you give your IDs and classes all make sense. You have to ensure that they are generic but not too specific, semantic, or general. Stick with names that are consistent and versatile. You have to remember and consider the possibility of the need for editing in the future. Write your new CSS codes in such a way that you will not blame yourself in the future for not being able to understand and read your own codes. Name classes and elements for the specific functions they serve and not for the way they will look on your web page.

Keep Your Codes Organized

It is one of the most important steps when writing elegant CSS codes. You should keep your codes simple and clean, including the comments. Each element in your CSS style sheet code must be semantically organized and written. You have to use a coherent structure and not just drop in attributes, classes, and IDs every time these come into your mind. A good tip to remember when you write attributes for your classes is to have them written in alphabetical order. One more way is to write these in sections where you group together similar elements.

Group Elements with the Same Properties

Instead of repetitive declaring of styles, it is best to group the ones that are virtually similar. It could be very useful when you design the typography of your website with the use of CSS codes.

Reduce the Style Sheet Size

It will not just help in improving loading speeds as it is also a good way of getting rid of the clutter from your CSS codes. With this, your codes are going to be easier to update and remove. Get rid of the unnecessary bits of code. A good example is not to specify a unit of measure if the value is zero. When the border size has been set to zero, instead of writing this as 0em or 0px, you can simply write 0. After all, one of the most integral aspects of website design is creating pages which can load fast.

 

 

Source  Brian Rutherford @ www.368durham.com

LAW CURBS OUTSOURCING OF STATE CONTRACT WORK

Illinois Governor, Rod Blagojevich signed a law that requires companies bidding for state work to disclose any outsourcing plans. The state will then decide which companies will get contracts, and have the power to end contracts if companies outsource more than they disclosed.

Under the law, companies bidding on contracts are required to submit a report with any outsourcing information to the Department of Central Management Services. It was noted that companies that practice outsourcing would not be automatically banned from getting work. The law will take effect on July 1.

Senator Carol Ronen proposed the legislation because companies are increasingly shipping jobs to foreign countries. Ronen said, [This is] an important first step to keep jobs in this state and in this country.  Another sponsor, Representative Harry Osterman, said that the law shows Chicago’s commitment to fight outsourcing. Osterman adds, One bit of leverage we have is that as a state with a large budget, how we spend our money is important.”

Tod Maisch, spokesman for the Illinois State Chamber of Commerce, said that business are pleased with the law. He said, we’re pleased that the Legislature took a careful look at an emotional issue and crafted a piece of legislation that employers can live with.”