CSS id and them selections
Sunday, October 7th, 2007Learn how to create and select the CSS ids and use them in a short tutorial and with an HTML page exemple:
Learn how to create and select the CSS ids and use them in a short tutorial and with an HTML page exemple:
This article will tell you how to make your CSS files a bit smaller. You can ask yourself one question; Why shouldn’t you? Read on to find out how to do this.
There are only advantages of making your CSS files some smaller. When your website uses a 5k CSS file, you might not see the difference in loading time, but when using bigger (25k) files, you can notice your website will load a bit faster when using some of the steps below. Another thing is that your file will become more organized and clean. Read on to get tips of improvement.
The main idea of this article is to reduce the number of characters you have used in your CSS. The less characters, the smaller your file.
Comments
You have different ways of using comments. Comments may be something you can not delete in your CSS, because you might forget something (or your fellow-workers). But, there are a couple ways of using them.
/*———————-*/
/*—-Comment—-*/
/*———————-*/
These lines of code do the same as:
/*Comment*/
You can still read what it says and what tips it gives. The only thing you did is to save space.
Color prefixes