| Mobile | RSS

Creating a clean and efficient spread sheet

February 6th, 2008 | No Comments | Posted in Articles, CSS

I don’t think I’m a CSS guru, this is why I had to read a lot so I could understand many things about this subject. Nowadays everybody wants to create and design web sites with CSS. And it’s true that it’s more efficient and easier to change, a simple click chances everything. In Y-Times I found a very good list of advices to improve our CSS knowledge.

Place your style sheet externally. Save the style sheet in one of more CSS files, and then link them with link rel=”stylesheet” type=”text/css” href=”/lib/yourstoreid/yourstyle.css”>

Combine the less number of style sheets possible. If you’re using a lot make sure they all have names on them. Use ID’s to differenciate the elements.

Don’t repeat classes without a purpose, like for example:

< a href=”index.html” class=”nav”>Home
< a href=”info.html” class=”nav”>Info
< a href=”contents.html” class=”nav”>Contents

Define the main design, and then go to those that are more specific.

Don’t import unless it’s really necessary. Don’t use ID chains. ID’s are unique so refer to them all the time, avoid using #main because you’re telling the site that this should prevail in front of others.

Leave a Reply 62 views, 1 so far today |

Related posts:

    Top 100 cheat sheets for developers
    Resources for creating templates
    Minimalistic and Free CSS Templates
    ProFolio: Creating an online portfolio

Leave a Reply

  • Meta