CSS Pada HTML.

CSS pada HTML umumnya digunakan untuk memperbagus tampilan pada Website, yg biasanya digunakan pada Rancangannya di HTML.
CSS yang akan saya bahas :
- CSS Inline.
- CSS Embreded.
- CSS Background.
A. CSS Inline.
   CSS Inline Biasanya digunakan diluar Tag <body>
   Cara penulisan :
        <p Style='background: red;
        Color: black;
        Font-Size: 10pt;>

B. CSS Embreded.
    CSS Embreded di pakai dalam TAG <Head>
    cara penulisan :
<Head>
<style>
{ color: Red;
   background: Black;
   Font-size: 10px;
}
</style>
</Head>
seperti contoh di atas.

C. CSS Background.
     CSS Linked sama halnya juga seperti yang di atas, namun perlu 1 file untuk linked.


Property background
1. Background-color
Contoh:
Body {
Background-color : green;
}
2. Background-Image
Contoh:
Body {
Background-image : url(gambar1.jpg);
}
3. Background-attachment
Body {
Background-attachment : scroll;
}
4. Background-Repeat
Body {
Background-repeat : repeat;
Background-image : url(image/gambar1.jpg);
}
5. Background-position
Body {
Background-repeat : no-repeat;
Background-image : url(image/gambar1.jpg);
Background-position : bottom center
}
style1.css


Official: Gayvin Red Trebol/

0 komentar:

Posting Komentar

Diberdayakan oleh Blogger.

Copyright © / Yngwie Malvin

Template by : Urang-kurai / powered by :blogger