Tugas web UH3

Kali ini saya akan memperlihatkan web yang telah saya buat secara sederhana...

-Berikut ini kodingan cssnya :

body {
background-image: url(./images/spice3.jpg);
background-size: cover;
background-attachment: fixed;
background-repeat: no-repeat;
}

.semua{
width: 1200px;
height: 1200px;
}
#header {
   background-color: white;
   height: 40px;
   width: 1200px;
   margin: 0 auto;
}

#content {
height: 1000px;
width: 1200px;
padding-top: 10px;
margin: 0 auto;
background-color: #ccc;

}
#footer {
width: 1200px;
height:100px;
margin: 0 auto;
background-color: gray;
background-size:cover;
}
#content img{
padding-left:40px;
width: 350px;
height: 250px;
padding-top:65px;
padding-bottom: 30;
}
.logo {
width: 500px;
padding-top: 35px;
font-size: 30px;
font-family: Source Sans Pro Black;
color: #6fe00b;
float: center;
font-weight: lighter;
font-style: italic;
text-shadow: 3px 3px 3px blue ,1px 1px 0px rgba(0,0,0,1);
}
.menu{
height: 50px;
position: fixed;
background-color:black;
width: 1200px;
    top: 0;
    scroll-behavior: smooth;
}
.menu ul{
list-style: none;
}
.menu ul li a{
float: left;
width: 120px;
height: 30px;
position: sticky;
scroll-behavior: smooth;
padding-left: 190px;
display: block;
text-align: center;
color: white;
text-decoration: none;
text-transform: uppercase;
position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
}
.menu ul li a:hover{
background-color:black;
display: block;

}
.menu ul li:hover ul{
display: block;
}
.menu ul li ul{
display:none;
position:fixed;
    left: 235px;
   color: blue;
    width: 200px;
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 50px;
}
.menu ul ul a{
display: block;
float: none;
padding-left: 30px;
text-align: left;
width: 150px;
position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
}
.menu ul ul li a:hover {
background-color: red;

}
.sticky{
position:relative;
top: 0;
width: 100%;
}
.sticky + .content{
padding-top: 60px;
}
.banner{
width: 1200px;
height: 230px;
padding-left:67px;
padding-top:2px;
}

-Berikut ini kodingan htmlnya :

<!DOCTYPE html>
<html>
<head>
<title>Warung sederhana</title>

    <link rel="stylesheet" href="./jquery/themes/default/default.css" type="text/css" media="screen" />
 
    <link rel="stylesheet" href="./jquery/themes/light/light.css" type="text/css" media="screen" />
 
    <link rel="stylesheet" href="./jquery/themes/dark/dark.css" type="text/css" media="screen" />
 
    <link rel="stylesheet" href="./jquery/themes/bar/bar.css" type="text/css" media="screen" />
 
    <link rel="stylesheet" href="./jquery/nivo-slider.css" type="text/css" media="screen" />

    <link rel="stylesheet" href="./popup/css/magnific-popup.css">

    <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div>
       <header>
        <div id="header">



<center><div class="menu">
<center>

<ul>
<li><a href="#header" class="more scrolly" >Home</a></li>
<li><a href="#content" class="more scrolly">Menu</a></li>
<li><a href="#footer" class="more scrolly">Kontak</a></li>
</ul></center>
</div>
</div>
<div class="banner">
<img src="./images/mantap.png">
</div>
<div id="content">
<div class="popup-gallery">
<a  href="./images/rendang.jpg" title="Rendang makanan khas sumatera barat RP 40.000" ><img src="./images/rendang.jpg"/ ></a>
<a href="./images/betutu.jpg" title="Ayam betutu makanan khas bali RP 80.000"><img src="./images/betutu.jpg" ></a>
<a href="./images/gudeg.jpg" title="Gudeg makanan khas Yogyakarta RP 40.000 "><img src="./images/gudeg.jpg"></a>
<a href="./images/aceh.jpg" title="Mie aceh makanan khas Aceh RP 50.000"><img src="./images/aceh.jpg"></a>
<a href="./images/pempek.jpg" title="Pempek makanan khas palembang RP 30.000"><img src="./images/pempek.jpg"></a>
<a href="./images/otak.jpg" title="Otak-Otak makanan khas Kepulauan RP 5.000"><img src="./images/otak.jpg"></a>
<a href="./images/jus.jpg" title="Jus mangga RP 5.000"><img src="./images/jus.jpg"></a>
<a href="./images/lapis.jpg" title="Lapis Legit RP 5.000"><img src="./images/lapis.jpg"></a>
<a href="./images/cubit.jpg" title="Kue cubit RP 2.000"><img src="./images/cubit.jpg"></a>
</div>


</div>
</div>
<div id="footer">
<center><br><font>Jl.Sawo rt 08/17 Jakrta Timur</font></br><center>
<ceneter><br><font>Telp. 081288332624</font></br></center>




</div>
<script type="text/javascript" src="./jquery/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="./popup/js/jquery.min.js"></script>
<script type="text/javascript" src="./popup/js/jquery.magnific-popup.min.js"></script>
    <script type="text/javascript" src="./jquery/jquery.nivo.slider.js"></script>
    <script src="js/jquery.min.js"></script>
<script src="js/jquery.scrolly.min.js"></script>
<script src="js/jquery.poptrox.min.js"></script>
<script src="./js/skel.min.js"></script>
<script src="js/util.js"></script>
<script src="js/main.js"></script>

 

    </script>

</body>
</html>

SS Hasilnya





berikut ini adalah RAR yang bisa kalian download...

Download disini
Next Post Previous Post
No Comment
Add Comment
comment url