Membuat Web menggunakan CSS, Section, dan Script
* kalau ingin meminta file video/image langsung tulis di kolom komentar yaaaa
1. CSS (simpan dengan extensi CSS)
header, section, footer, aside, nav, article, figure, figcaption {
display: block;}
body {
color: #666666;
background-color: #000491;
background-position: center;
font-family: Georgia, Times, serif;
line-height: 1.4em;
margin: 0px;}
.wrapper {
width: 940px;
margin: 20px auto 20px auto;
background-color: #ffffff;
box-shadow: 2px 2px 2px rgba(0,0,0,0.8);
border: 1px grey;}
header {
height: 250px;
background-image: url(header.png);}
h1 {
text-indent: -9999px;
width: 940px;
height: 130px;
margin: 0px;}
nav, footer {
clear: both;
color: #ffffff;
background-color: #000;
height: 50px;}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
opacity: 0.4;}
nav li {
float: left;
border-right:1px solid #bbb;}
nav li:last-child {
border-right: none;}
nav li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;}
nav li a:hover:not(.active) {
background-color: #111;}
section.courses {
float: left;
width: 659px;
border-right: 1px solid #eeeeee;}
article {
clear: both;
overflow: auto;
width: 100%;}
hgroup {
margin-top: 40px;}
video {
width: 648px;
height: auto;
padding: 5px;}
figure {
float: left;
width: 290px;
height: 220px;
padding: 5px;
margin: 20px;
border: 1px solid #eeeeee;}
figcaption {
font-size: 90%;
text-align: left;}
aside {
width: 230px;
float: left;
padding: 0px 0px 0px 20px;}
aside section a {
display: block;
padding: 10px;
border-bottom: 1px solid #eeeeee;}
aside section a:hover {
color: #990c2b;
background-color: #efefef;}
a {
color: #000491;
text-decoration: none;}
h1, h2, h3 {
font-weight: normal;}
h2 {
margin: 10px 0px 5px 0px;
padding: 0px;}
h3 {
margin: 0px 0px 10px 0px;
color: #000491;}
aside h2 {
padding: 30px 0px 10px 0px;
color: #000491;}
footer {
font-size: 80%;
padding: 7px 0px 0px 20px;
text-align: center;}
2. FIle Index HTML (file running)
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="utf-8" />
<title> PLJ </title>
<script>
var txt="Politeknik LP3I jakarta ";
var kecepatan=100;
var segarkan =null;
function bergerak() {
document.title=txt;
txt=txt.substring(1,txt.length)+txt.charAt(0);
segarkan=setTimeout("bergerak()",kecepatan);}bergerak();
</script>
<link href="images/style.css" style type="text/css" rel="stylesheet">
</head>
<body>
<div class="wrapper">
<header>
</header>
<nav>
<ul>
<li><a href="" class="current"> Beranda </a></li>
<li><a href=""> Visi & Misi </a></li>
<li><a href=""> Program Studi </a></li>
<li><a href=""> Konsentrasi </a></li>
<li><a href=""> Kontak </a></li>
</ul>
</nav>
<section class="courses">
<h2></h2>
<article>
<video controls>
<source src="images/testimoni.mp4" type="video/mp4">
</video>
<figure>
<img src="images/gedung.jpg" width="290" alt="foto" />
<figcaption>Gedung PLJ Kampus Bekasi </figcaption>
</figure>
<h2>Politeknik LP3I Jakarta</h2>
<h3> kampus Bekasi</h3>
<p>Alamat : Jl. Jendral Sudirman A1-A1 Grandmall Bekasi</p>
</article>
</section>
<aside>
<section class="Populear-recipes">
<h2>Kampus Lainnya : </h2>
<a href="">PLJ Kampus Kramat</a>
<a href="">PLJ Kampus Jakarta utara</a>
<a href="">PLJ Kampus Sudirman</a>
<a href="">PLJ Kampus Cikarang</a>
</section>
<section>
<h2> Kontak </h2>
<p> Telp. (021) 88954722 <br>
Email.Bekasi@plj.ac.id</p>
</section>
</aside>
<footer>
© 2018 Politeknik LP3I Jakarta Kampus Bekas
</footer>
</div>
</body>
</html>
0 komentar:
Posting Komentar