Contoh CSS

CSS Eksternal

Format CSS
body{ 
background-image: url('bg.jpg') repeat-x top center fixed #003060; 
width:960px; 
margin-left:auto; 
margin-right:auto;}
#page{
background-image: url('bg.jpg') repeat-x top center fixed #003060;
width:960px;
}

#header{ 
width:960px; height:150px; 
background-color:#999999;}
#logo{}
#slogan{}
#menu{}
#sidebar{ width:340px; background-color:#0033FF;}
#frm_login{}
#artikel{}
#kategori{}
#content{ width:600px; background-color:#0066FF;}
#isi{}
#judul{}
#posting{}

#footer{ width:960px; height:70px; background-color:#0066FF;}

Format Index.html


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Belajar Web</title>
<link rel="stylesheet" href="style.css" />
</head>

<body>
<div id="page">
 <div id="header">
 <div id="logo"><img src="" height="140" width="500" /></div>
 <div id="slogan"></div>
 <div id="menu"></div>
 </div>
 
 <div id="sidebar">
 <div id="frm_login">
 </div>
 <div id="artikel">
 </div>
 <div id="kategori">
 </div>
 </div>
 <div id="content">
 <div id="isi">
 <div id="judul"></div>
 <div id="posting">
 </div>
 </div>
 <div id="footer">
 <p>Copyrihgt &copy; 2014</p>
 </div>
</div>
</body>
</html>
 

Postingan terkait:

Belum ada tanggapan untuk "Contoh CSS"

Post a Comment