Membuat Button Side Navigation dengan HTML dan CSS

Halo teman teman webmaster Source Code Aplikasi, kali ini kita akan belajar membangun Merancang Button Side Navigation dengan HTML dan CSS, Pertama-tama tama teman teman bikin 4 halaman html dengan nama nama yang berbeda contoh nya, index.html, blog.html, contact.html dan project.html. seperti ini struktur html nya.





 



index.html



<!DOCTYPE html>
<html>
<head>
<link rel = stylesheet href = style.css type = text/css>
<title>Side Navigation fitur</title>
</head>
<body>

<div id = mySidenav class = sidenav>
<a href =index.html id =about> Home </a>
<a href =blog.html id =blog> About </a>
<a href =project.html id =projects> Projects </a>
<a href =contact.html id =contact> Contact </a>
</div>

<div style =margin-left:80px; background: #4CAF50; color: #fff; padding: 20px; margin-top:20px; >
<h2> Klik side buttons </h2>
<p> ini yakni halaman Home </p>
</div>

</body>
</html>


Blog.html



<!DOCTYPE html>
<html>
<head>
<link rel = stylesheet href = style.css type = text/css>
<title>Side Navigation fitur</title>
</head>
<body>

<div id = mySidenav class = sidenav>
<a href =index.html id =about> Home </a>
<a href =blog.html id =blog> About </a>
<a href =project.html id =projects> Projects </a>
<a href =contact.html id =contact> Contact </a>
</div>

<div style =margin-left:80px; background: #2196F3; color: #fff; padding: 20px; margin-top:20px; >
<h2> Klik side buttons </h2>
<p> ini yakni halaman About </p>
</div>

</body>
</html>


contact.html



<!DOCTYPE html>
<html>
<head>
<link rel = stylesheet href = style.css type = text/css>
<title>Side Navigation fitur</title>
<body>

<div id = mySidenav class = sidenav>
<a href =index.html id =about> Home </a>
<a href =blog.html id =blog> About </a>
<a href =project.html id =projects> Projects </a>
<a href =contact.html id =contact> Contact </a>
</div>

<div style =margin-left:80px; background:#555555; color: #fff; padding: 20px; margin-top:20px; >
<h2> Klik side buttons </h2>
<p> ini yakni halaman Contact </p>
</div>

</body>
</html>


project.html



<!DOCTYPE html>
<html>
<head>
<link rel = stylesheet href = style.css type = text/css>
<title>Side Navigation fitur</title>
</head>
<body>

<div id = mySidenav class = sidenav>
<a href =index.html id =about> Home </a>
<a href =blog.html id =blog> About </a>
<a href =project.html id =projects> Projects </a>
<a href =contact.html id =contact> Contact </a>
</div>

<div style =margin-left:80px; background:#F44336; color: #fff; padding: 20px; margin-top:20px; >
<h2> Klik side buttons </h2>
<p> ini yakni halaman Project </p>
</div>

</body>
</html>


seperti ini tampilannya.



Membuat



bila kita klik diantara button nya karenanya akan piondah ke halaman lain,.



demikianlah panduan Merancang Button Side Navigation dengan HTML dan CSS, semoga bermanfaat yah teman teman.




Sumber https://kursuswebsite.org

Popular posts from this blog

Perbedaan Antara Keyup dan Keydown Pada jQuery

Membuat Table Warna Berselang dengan PHP