More CSS for Beginners

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

About Shane

Hi I am Shane the main author of this blog. I am a self taught web developer. I have been working in this industry since 2008. I work a lot with WordPress, Magento, SEO & SEM, and custom built websites. I love all sports and I will try anything at least twice.

Working remotely is one of the fastest growing perks in the working world. It’s something that people talk about a lot, and it’s a solution to the “work/life balance” problem that bothers so many people. Most of us have asked the question, “Why do I work so hard?” For some people, there are many sides

Know little about the use of keylogger for Android? Wondering why so many friends choose free Android spy? What benefits can you get from tracking cell phones of your children and employees with the help of sms tracker? Keep reading and find the answers in this short article. Have you ever dreamed of taking control

As a photographer whether it be a hobby or on a professional level the realm of high dynamic range photography can be very troublesome without photo editing software specifically made for photo HDR. Aurora HDR photography can be very challenging as it is, but with Aurora the job gets a little bit easier. Some might