Desain Layout Halaman Web



untuk membuat Desain layout halaman web, pengen tau caranya kan??
coba liat aja disini,pasti kamu-kamu bisa praktekin sendiri.nah untuk programnya neh...
gambar1:

<em><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" lang="en">

<head>
<title>Desain Halaman Web Oleh_Agustin Muvidhatul I</title>
<link rel="stylesheet" href="modul3b.css" type="text/css">

</head>

<body>
<div id="wrapper">
<div id="header">
<div id="Gambarum">
</div>
<div class="style4" id="Te">PT. HM. SAMPOERNA Tbk
</div>
<div id="aaaa">
<div class="style6" id="atas">
<div align="right" class="style7"><a href="http://localhost/Modul 2/modul3b.html" target="_blank" class="style7">Home</a> | <a href="http://localhost/Modul 2/modul3b.html" target="_blank" class="style7">Information</a> | <a href="http://localhost/Modul 2/modul3b.html" target="_blank" class="style7">News</a> | <a href="http://localhost/Modul 2/modul3b.html" target="_blank" class="style7">Contact</a> | <a href="http://localhost/Modul 2/modul3b.html" target="_blank" class="style7">About Us</a> </div>
</div>
<div id="search">
<div class="style7" id="search1">
<div align="right"><em><strong>
Search
</strong></em></div>
</div>
<div id="search2"></div>
</div>

</div>
</div>
<div id="inner">
<div id="sidebar">
<div id="leftmenu">
<ul>
<li>
<div align="center"><a href="http://localhost/Modul 2/modul3b.html">Home</a></div>
</li>
<li>
<div align="center"><a href="http://localhost/Modul 2/modul3b.html">News </a></div>
</li>
<li>
<div align="center"><a href="http://localhost/Modul 2/modul3b.html">Visi &amp; Misi</a></div>
</li>
<li>
<div align="center"><a href="http://localhost/Modul 2/modul3b.html">Perusahaan</a></div>
</li>
<li>
<div align="center"><a href="#">Download</a></div>
</li>
</ul>
</div>
</div>
<div id="Inner2">
<div id="top">
</div>
<div id="content">
<p class="style2">Beasiswa Perusahaan </p>
<p class="style3">Oleh : Agustin Muvidhatul I</p>
<p class="style3">Penerimaan beasiswa secara simbolik oleh PT. HM. Sampoerna </p>
<p class="style3">bertempat di Kantor pusat PT. HM. Sampoerna Tbk. di Surabaya
</p>
</div>
<div id="right">
</div>
<div id="Rightup">
<p align="center" class="style8">Beasiswa Perusahaan PT. HM Sampoerna Tbk. </p>
</div>
<div id="Rightbot">
<div align="center" class="style11"><u>PT. HM. SAMPOERNA Tbk</u>
</div>
</div>
</div>
</div>
<div id="footer">
<p align="right" class="style10">Design Oleh Agustin Muvidhatul I &copy; PTI 07 </p>

</div>
</div>
</body>
</html></em>

ne CSSnya =
#wrapper {
margin: auto;
width: 997px;
border: 0;
}
#header {
height: 120px;
border: 1px solid blue;
margin-bottom:2px;
background:blue url('Header2.jpg');
}
#Gambarum {
float: left;
height: 63px;
width:61px;
margin-top:20px;
margin-left:50px;
border: 0;
background:red url('Logo.png');
}
#Te {
float: left;
height: 35px;
width:300px;
margin-top:35px;
margin-left:5px;
}
#aaaa {
float: right;
height: 120px;
width:400px;
border: 0;
}
#atas {
float: left;
height: 25px;
width:350px;
margin-left:30px;
margin-top:2px;
border: 0;
}
#search {
clear:both;
float: right;
height: 20px;
width:300px;
margin-top:67px;
margin-right:20px;
border: 0;
}
#search1 {
float: left;
height: 15px;
width:120px;
margin-left:50px;
margin-top:4px;
border: 0;
}
#search2 {
float: right;
height: 17px;
width:110px;
margin-right:2px;
margin-top:4px;
border: 1px solid white;
background:white;
}
#inner {
float: left;
border: 0;
}
#sidebar {
float: left;
margin-right: 0px;
width: 250px;
height:420px;
border: 1px solid blue;
background:blue url('sidebar.jpg');
}
#Inner2 {
float: left;
width: 745px;
height: 420px;
border: 0;
}
#top{
height: 80px;
border: 0;
background:blue url('BG.jpg');
}
#content {
float: left;
margin-top:10px;
margin-right:15px;
margin-left:15px;
width: 460px;
height: 323px;
border: 0;
}
#right {
float: left;
width: 250px;
height: 200px;
margin-top:10px;
border: 1px solid green;
background:blue url('Beasiswa.jpg');
}
#Rightup {
float: left;
width: 250px;
height: 80px;
margin-top:3px;
border: 1px solid Blue;
background-color:black;
}
#Rightbot {
float: left;
width: 250px;
height: 26px;
margin-top:10px;
border: 0;
list-style-position:inside;
}
#footer {
clear: both;
height: 80px;
border: 1px solid blue;
background:blue url('Footer1.jpg');
}
.style2 {
font-size: 24px;
font-weight: bold;
color: #000099;
}
.style3 {
color: #0000CC;
font-weight: bold;
}
.style4 {
font-family: "Arial", Times, serif;
font-size: xx-large;
color: #FFFFFF;
font-weight: bold;
}
.style6 {
font-family: "Arial", Times, serif;
font-weight: bold;
}
.style7 {color: #FFFFFF}
.style8 {
font-family: "Arial", Times, serif;
font-size: 16px;
font-weight: bold;
color: #FFFFFF;
}
.style10 {
color: #FFFFFF; font-size: 12px;
}
.style11 {
color: #000066;
font-weight: bold;
}
#leftmenu ul {
width: 250px;
list-style-type:none;
padding:0; margin:0;
}
#leftmenu a:link, #leftmenu a:visited, #leftmenu a:active {
padding-left: 15px;
text-decoration: none;
}
#leftmenu a {
padding: 5px 0px 5px 15px; display: block;
background: blue url('button.jpg');
margin: 0px 0px 1px; color: #ffffff;
}
#leftmenu a:hover {
background: #000066 no-repeat left center; color: #ffffff
}

Gambar 2:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" lang="en">

<head>
<title>Desain_Layout_Halaman_Web_Oleh_Agustin Muvidhatul I</title>
<link rel="stylesheet" href="modul3a.css" type="text/css">
</head>

<body>
<div id="wrapper">
<div id="header">
Header</div>
<div id="inner">
<div id="sidebar">
Sidebar
</div>
<div id="aaaa">
<div id="top">
Top
</div>
<div id="content">
Content
</div>
<div id="right">
Right
</div>
</div>
</div>
<div id="footer">
Footer
</div>
</div>

</body>
</html>

CSSnya=
#wrapper {
margin: auto;
width: 756px;
border: 1px solid Blue;
}
#header {
height: 70px;
border: 1px solid green;
}
#inner {
float: left;
margin: 5px 0;
border: 1px solid black;
}
#sidebar {
float: left;
margin-right: 20px;
width: 180px;
height: 330px;
border: 1px solid red;
}
#aaaa {
float: left;
width: 550px;
height: 330px;
border: 1px solid green;
}
#top{
height: 70px;
border: 1px solid red;
}




#content {
float: left;
margin-right: 20px;
width: 320px;
height: 250px;
border: 1px solid red;
}
#right {
float: right;
width: 205px;
height: 200px;
border: 1px solid green;
}
#footer {
clear: both;
height: 50px;
border: 1px solid green;
}

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS
Read Comments

0 komentar:

Posting Komentar