Tag «CSS»

How to remember CSS Shorthand properties

Using margin or padding properties of CSS in the following syntax is straight forward. { padding-top:5px; padding-right:12px; padding-bottom: 15px; padding-left: 20px; } But the shorthand version of these properties may be a little difficult to remember for CSS beginners. The above CSS declaration can be written as; {padding:5px 12px 15px 20px;} Now how do you …

Homer Simpson in pure CSS.

OK developers here is your next software project. Create a web page that will display Homer Simpson’s image on the screen. Too easy for you? Here is the catch. You cannot use any image. Yes that is correct you will need to draw Simpson’s image without using any graphics. Sounds impossible? If  you think this …