Last time I talked about some problems now I am going to talk about some easier ways to write some code. These are just some things that I have come across that might help the beginners. When I first started coding in CSS I wrote everything out the long way and I know you beginners are saying there is a long way. Well yes there is. Some of the things that I wrote out the long way consist of the background property. Which has background-color, background-repeat, background-image, and many more well instead of coding them all like that there is a easier way. All you have to do is use the background property and then put all the other elements inside of it. Like this-

background {#XXXXXX transparent no-repeat url(image);}

You can put all the information for that property in side of one thing. It is kind of like padding, margin, border, and others you can either code each separate or just as one like this-

separate- padding-left:0; padding-right:0; padding-top:0; padding-bottom:0;

just as one- padding:0; You can use that for everything but say you have a 2px padding on the right it would look like this padding: 0 2px 0 0;. That means padding: TOP RIGHT BOTTOM LEFT; this is quite simular for margins also. Now borders are a little different you can either say border: 4px and other stuff; or if you only want a border on a certain side then you have to write out border-right, border-left, border-top, and border-bottom. Well that was all I am posting about until next time.

Shane Strong
Chosen Development