Cauta in blog

Monday, October 18, 2010

7 Trucuri si sfaturi pentru scrierea codului CSS

1. Scrieti codul grupat
Orice web site este format din Header, Content si Footer, ar trebui pastrata aceeasi ordine si in fisierul CSS.

Cod:
/* Header Section */
#header {
    width: 100%;
}
/* Content Section */
#content {
    float: left;
    width: 970px;
}
/* Articles Section */
.article {
    float: left;
    width: 500px;
}
/* Sidebar Section */
#sidebar {
    float: left;
    width: 470px;
}
/* Footer Section */
#footer {
    width: 100%
}

2. Folositi prescurtari
Folosirea prescurtarilor in CSS este foarte importanta, nu numai ca salveaza timp dar si marimea fisierului.

citeste tot articolul pe Tutoriale Css


0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Ads