Deprecated: Assigning the return value of new by reference is deprecated in /membri2/asbruff/flatpress/comments.php on line 213
TheJoe » CSS: Reset CSS
2010
Apr
2

CSS: Reset CSS


Deprecated: Non-static method StringParser_Node::destroyNode() should not be called statically, assuming $this from incompatible context in /membri2/asbruff/flatpress/fp-plugins/bbcode/inc/stringparser.class.php on line 358

css.jpg La tecnica dell’azzeramento degli stili CSS è stata introdotta per la prima volta da Eric Meyer allo scopo di avere uno spazio di lavoro idealmente bianco dove definire da zero tutti gli stili necessari senza dover tener conto della formattazione di default di un dato stile.

Perché il reset.css funzioni è necessario includerlo prima del CSS principale. Vediamo come:

<link rel="stylesheet" type="text/css" href="reset.css" media="screen" />
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />

Ed ecco cosa dovremo inserire nel “reset.css”:

/* v1.0 | 20080212 */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

/* remember to define focus styles! */
:focus {
    outline: 0;
}

/* remember to highlight inserts somehow! */
ins {
    text-decoration: none;
}
del {
    text-decoration: line-through;
}

/* tables still need 'cellspacing="0"' in the markup */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

Strict Standards: Only variables should be passed by reference in /membri2/asbruff/flatpress/fp-includes/core/core.fpdb.class.php on line 268

Deprecated: Non-static method StringParser_Node::destroyNode() should not be called statically, assuming $this from incompatible context in /membri2/asbruff/flatpress/fp-plugins/bbcode/inc/stringparser.class.php on line 358

Calendario

  • April 2010
    SunMonTueWedThuFriSat
     123
    45678910
    11121314151617
    18192021222324
    252627282930 

Strict Standards: Only variables should be passed by reference in /membri2/asbruff/flatpress/fp-includes/core/core.fpdb.class.php on line 256

Tags

  hoster     Gnome     Alien     Tech     Jack     Pure|dyne     Gmail     Hydrogen     Firefox     AspirOne     SongBird     Shell         CentOS     Web     Linux     Mencoder     Mac OS X     Global menu     Stampa     Meebo     rSync     Audio     Fedora     OpenVZ     Dyne|bolic     Sourceforge     Siti     Php     Video     GoogleVideo     htaccess     Ajax     Grafica     VHosting     Linutop     Tips     Ardour     Google     Linux4one     Social Network     ChromeOS     Javascript     Samba     GoogleBuzz     Pidgin     GnomeMusicPlayerClient     Xfce4     WebArchive     Software     Prey     HowTo     Fotoxx     Flatpress     Html     Open Source     StyleShout.com     Audacity     Sicurezza     SplitToning     TrueCrypt     SivamDesign.com     Symbian     Css     Youtube     Nokia     mac4lin     Blog     Distribuzioni     Brushes     Aruba     MPD     Tutorial     Netbook     Tilda     Gimp     Ubuntu  

Admin area