Desain Halaman Web Sederhana menggunakan CSS

2 Comment
postingan sebelumnya telah dibahas tentang desain layout web, sekarang tinggal desain halaman web sederhana....silahkan di coba! Be Creative...!
Caranya:
Buat file CSS dengan nama file tugas2.css
* { margin: 0; }
body { padding:0; margin:5px auto; font:0.85em/160% Comic Sans MS; }
#wrapper { margin:auto; width:980px;}
#header { height:80px; margin:0px auto;background:#000;}
#header2{height:70px; margin:auto; background:#fff url(bg1.jpg);}
#subheader { clear:both;  margin:auto; width:780px; height:140px; background-image:url(head2.jpg)}
#logoUM { float:left; margin:1px 1px 1px 1px; height:65px;}
#menu { font-size:small; height:20px; float:right; padding:0px 50px; font-weight:bold; color:white;}
#title h2{ float:left; padding:0px 10px; height:40px; margin:20px 0px; font:2.1em/100% 'Cooper Black'; font-weight: bold;}
#search { clear:right; float:right; margin:20px 50px 0px auto; height:30px; font-weight:bold; color:white;}
#inner { float:left;  margin:0px;}
#footer { clear:both; height:60px; background:blue;}
#footer p { text-align:center;}
#sidebar { float:left; width:200px; height:400px; background-color:#99FF33}
#content { float:right; width:780px; height:400px; background:#fff}
#submenu a:link, #leftmenu a:visited, #leftmenu a:active { padding-left:15px; text-decoration:none;}
#submenu a { padding: 5px 0px 5px 15px; display:block; background:#6cae15 no-repeat left center; margin: 0px 0px 1px; color:#000 }
#submenu a:hover { background:#5e9711 no-repeat left center; color:#fff}
#submenu ul { width:200px; list-style-type:none; padding:0; margin:0;}
#events-show { float:left; margin:auto; width:480px; height:240px;}
#events-show p, h3{ padding: 10px 20px 0px 20px; text-align:justify;}
#events-show hr{ width:440px; color:#FF9900; margin: 10px 20px 0px 20px;}
#events { float:right; margin:10px auto; width:260px;  border: 2px solid green; background:#99FF33}
#events h3{ padding: 10px 20px 0px 20px; text-align:justify;}
#events ul{ padding: 10px 20px 20px 40px; list-style:square;}


Setelah itu buat file HTML dengan nama file sama, beda ekstensi (.html)



Setelah membuat kedua file tersebut dalam satu folder...monggo sodara-sodara sekalian menikmati hasilnya,dengan cara dibuka file HTMLnya...


Ma'af, script HTMLnya masih 'berantakan'...Selamat mencoba...semoga bermanfaat...!

2 Comment:

Posting Komentar

Diberdayakan oleh Blogger.

Followers

 

©Copyright 2011 Hey, Morn'! | TNB