Tutorials

Latest Word » Tutorials » CSS Beginners Do’s and Dont’s Part 1
CSS Beginners Do’s and Dont’s Part 1

CSS Beginners Do’s and Dont’s Part 1

Tags:

As I mentor some friends who’s learning CSS, I tend to repeat myself when asked for some advice. Here are 5 things that I would recommend to better yourself as a designer and developer.

1. DO Crossbrowser Check Often (Very Often!)

There have been many incidents where someone asks for help regarding a crossbrowser bug and it ends up they didn’t bother crossbrowser testing until the end of the project. My rule of thumb is for every section of the website (header, side column, content, etc), check all of your major browsers.

DON’T move on until its resolved (unless you are pressed for time). When you build on top of an existing bug, it will be time consuming to go back and undo everything to fix or just to even investigate the issue. For us designers/developers, time is money, so let’s make sure we catch and terminate the bugs at an early stage.

Here are some articles I’ve written regarding this topic:

2. DO Aim for Perfection

Clean code and precision in your code makes life easier on everyone around you. Some people call it being anal, but its just doing your job to the best of your abilities. You don’t want someone painting your house spilling paint all over the place right?

DON’T get used to sloppy coding habits. Its easier to be lazy and leave sloppy code around, but doing so will only bloat your code and give you a headache in the long run. Read up on this article – “12 Principles For Keeping Your Code Clean” for good coding habits.

3. DO Subscribe to Blogs and Resources

One of the things I tell many novice designers/developers is to subscribe to designers/developers that you admire. 90% of the knowledge I have now is from reading blogs and articles online. If you are new to RSS Feeds, check out my previous article “Why Designers Should Subscribe to RSS Feeds“.

DON’T live in a bubble. Seek out new information and trends!

4. DO Ask Questions on Blogs & Forums

I never really took advantage of this when I was starting out but now a days there are plenty of strong communities that are willing to help out. Ask detailed questions with specific examples, links, and code. The more information you provide to them, the faster and easier they can scope the problem.

I would recommend checking out CSS-Tricks Forums, Smashing Magazine Forums, and Designers Talk Forums since its very active and a lot of talented designers/developers are willing to help out.

DON’T be shy and keep the confusion to yourself.

5. Do Experiment and Learn By Trial and Error

I developed my skills and knowledge mostly by trial and error. I think this is the healthiest way to get some real hands on experience. When you read a tutorial on how something is done, read it carefully, and experiment with it.

DON’T eat and run!

Great Articles for Beginners

Related Posts

Author Bio

My name is Soh Tanaka and I am a Los Angeles based designer/front-end developer specializing in CSS driven web design with an emphasis on usability and search engine optimization. I also run a CSS Gallery which is updated daily with the best CSS websites from around the world. Come check it out!

You can learn more about me or Twitter  Follow me on twitter for more updates and resources!

Did You Enjoy This Post?

subscribe  Subscribe via RSS or by email to get all upcoming tutorials and articles delivered straight to you.

+ Add Comment22 Peeps Have Spoken Their Minds...

  1. Steo

    Why should i make one CSS multibrowser file? with condition i can make a style for ie7 and FF, and one for ie6.

  2. alexandra

    Nice website. Good works.

  3. Paul Ehrenreich

    Awesome article!

    This comes at a good time when I am trying to get my CSS skills up, I wish I would have read this a few years ago when I started out.

  4. David

    What’s up, Soh! Great article, btw. Thought I should bring Brian Cray’s article about targeting CSS in IE (anything). Here’s the article on that:

    http://briancray.com/2009/04/16/target-ie6-and-ie7-with-only-1-extra-character-in-your-css/

    I’ve tried it several times and it works for hacking and saves time on CSS validation on IE browsers. The only thing that creates heated discussions is validating the CSS using this technique (cuz it really doesn’t), and Brian makes a case for that.

    Hope things finds you well!

    David

  5. curtismchale

    That ‘not checking early and often’ used to get me all the time. I find now that I check often (any major layout change like floating a menu) I rarely run into problems and end up with IE stylesheets that are only a line or two to account for different levels of padding or margins. This really should be required reading for starters.

    @Steo I don’t think he mentioned anything about single CSS files for crossbrower compatibility but was implying that not checking early and often just makes it harder to track down the CSS bug that needs to be corrected or adjusted for browsers. I heartily concur.

  6. David

    trial an error is the best method! :)

  7. Gwóźdź web designer

    I completely agree. Rules you mentioned are important. I would also add, to use validator to check cross browser compatibility and to start validating sites as soon as possible.

  8. Soh

    @Steo , curtis basically summed it up for me. But if you could, you should be striving for one style sheet w/out any hacks. That would be the ideal way ;-)

  9. Web Designer

    People always forget about cross-browser issues..

  10. Jan

    Nice read, will check out the usefull links you posted.
    Subscribed to your feed.

  11. Yigit Ozdamar

    Great! I’m already excited for second part of this article.

  12. breadwild

    And don’t use white type on a dark background. Makes reading laborious. Especially if it is tightly tracked, small or bold.

  13. david.milewski

    When is part 2? :)?

  14. vishal

    good

  15. Web Design Cape Town

    I really struggle with css, but I’m getting better by reading such informative posts

  16. Drew

    Thanks so much for this. I wish I had more time in a day to work on my CSS.

    I am really liking the new features added to CSS 3.0 but I know I gotta learn my roots first.

  17. sayem

    how can u right menu in this site give a tutorial how u make this site

  18. Kapil

    Just great

  19. SEO

    Great info, validation is also important!

  20. Moi

    Loved it! I’m still in the learning process. BTW nice site.

  21. Heam

    Awesome … and agree with trial and error :D mostly it works !

  22. Chris J.

    I love experimenting on a lot of available codes from tutorials I read, it really helps me to learn what the lines of codes does.

Speak Your Mind...

Post HTMLNeed to Post HTML Code? Use Postable to post code friendly html. *Wrap all html code in <pre></pre> tags.
Post HTMLNeed to Keep Updated with Comments? Subscribe to comments now.

CSS Gallery