Inilah contoh Script Tabel dengan Mouse Houver,, bisa nanti di sesuaikan dengan keinginan sendiri..
sialhkan di simak dan di coba..
<html>
<title>Table</title>
<head>
<style>
#body{
background-color:white;
margin: 0 0 0 70
}
.table
{
width:80%;
margin-top:20px;
margin-left:100px;
border:1px solid black;
font-family:Chalibri, Arial, Comic Sans MS;
text-align:center;
border-radius:4px;
}
td{
border: 1px solid red;
border-radius:5px;
}
th{
text-align:center;
align:center;
background-color:blue;
color:white;border-radius:5px;
}
#table
{
text-align:center;
background-color:pink;
border-radius:30px;
}
tr:hover {color:yellow; cursor: pointer;}
transition: all 1s;
</style>
</head>
<center><h1>DATA MAHASISWA FKI</h1></center>
<body id="body">
</body>
<table class="table">
<tr>
<th>NIM</th>
<th>NAMA</th>
<th>JURUSAN</th>
<th>JENIS KELAMIN</th>
<th>IP. KUMULATIF</th>
</tr>
<tr id="table">
<td>L200120007</td>
<td>TRIANA DEWI SALMA</td>
<td>INFORMATIKA</td>
<td>PEREMPUAN</td>
<td>4.0</td>
</tr>
<tr id="table">
<td>L100120012</td>
<td>MAISYAROH</td>
<td>KOMUNIKASI</td>
<td>PEREMPUAN</td>
<td>3.9</td>
</tr>
<tr id="table">
<td>L200120009</td>
<td>TIWIK HANIF Z.</td>
<td>INFORMATIKA</td>
<td>PEREMPUAN</td>
<td>3.9</td>
</tr>
<tr id="table">
<td>L100120008</td>
<td>FAKHRUDIN RIFA'I</td>
<td>KOMUNIKASI</td>
<td>LAKI-LAKI</td>
<td>3.8</td>
</tr>
<tr id="table">
<td>L100120006</td>
<td>BAGAS </td>
<td>KOMUNIKASI</td>
<td>LAKI-LAKI</td>
<td>3.8</td>
</tr>
<tr id="table">
<td>L100120002</td>
<td>BUDI DARMANTO </td>
<td>INFORMATIKA</td>
<td>LAKI-LAKI</td>
<td>3.7</td>
</tr>
</table>
</html>
Dan,, berikut hasilnya..
Kamis, 19 Desember 2013
MEMBUAT MENU SCROLL DOWN
ini mau share sedikit cara untuk membuat menu dengan sub menu scroll down..
monggo disimak ^-^
<html>
<title>menu</title>
<head>
<style>
#MenuBox{
background:pink;
margin: 10 0 0 450;
border-radius:10px;
width: 364px;
height: 35px;
font-size: 12px;
font-family: cursive;
color:yellow;
font-weight: bold;
margin-bottom: 30px;
padding: 2px;
}
#BoxTurun {
width: 875px;
border-radius:6px;
float: left;
margin: 0;
padding: 0;
}
#Posisi {
border-radius:6px;
margin: 0;
padding: 0;
}
#Posisi ul {
border-radius:6px;
float: left;
list-style: none;
margin: 0;
padding: 0;
}
#Posisi li {
border-radius:6px;
float: left;
list-style: none;
margin: 0;
padding: 0;
}
#Posisi li a, #Posisi li a:link, #Posisi li a:visited {
border-radius:6px;
color:black;
display: block;
font-size: 16px;
font-family: Georgia;
font-weight: normal;
margin: 0;
padding: 9px 15px 8px;
}
#Posisi li a:hover, #Posisi li a:active {
border-radius:6px;
background:black;
color:blue;
margin: 0;
padding: 9px 15px 8px;
text-decoration: none;
}
#Posisi li li a, #Posisi li li a:link, #Posisi li li a:visited {
border-radius:6px;
background:pink;
width: 150px;
color:black;
font-size: 14px;
font-family: Georgia, Times New Roman;
font-weight: normal;
float: none;
margin: 0;
padding: 7px 10px;
border-bottom: 1px solid #FFF;
border-left: 1px solid #FFF;
border-right: 1px solid #FFF;
}
#Posisi li li a:hover, #Posisi li li a:active {
border-radius:6px;
background:pink;
color:black;
padding: 7px 10px;
}
#Posisi li {
border-radius:6px;
float: left;
padding: 0;
}
#Posisi li ul {
border-radius:6px;
z-index: 9999;
position: absolute;
left: -999em;
height: auto;
width: 170px;
margin: 0;
padding: 0;
}
#Posisi li ul a {
border-radius:6px;
width: 140px;
}
#Posisi li ul ul {
border-radius:6px;
margin: -32px 0 0 171px;
}
#Posisi li:hover ul ul, #Posisi li:hover ul ul ul, #Posisi li.sfhover ul ul, #Posisi li.sfhover ul ul ul {
border-radius:6px;
left: -999em;
}
#Posisi li:hover ul, #Posisi li li:hover ul, #Posisi li li li:hover ul, #Posisi li.sfhover ul, #Posisi li li.sfhover ul, #Posisi li li li.sfhover ul {
border-radius:6px;
left: auto;
}
#Posisi li:hover, #Posisi li.sfhover {
border-radius:6px;
position: static;
}
</style>
</head>
<body>
<h1> MEMBUAT MENU SCROLL DOWN </h1>
<h2> oleh TRIANA DEWI SALMA_L200120007</h2>
<HR>
<BR>
<BR>
<div id="MenuBox">
<div id="BoxTurun">
<ul id="Posisi">
<li><a href="#">MENU</a></li>
<li><a href="#">PROFIL</a>
<ul>
<li><a href="#">ORGANISASI</a>
<ul>
<li><a href="#">VISI</a></li>
<li><a href="#">MISI</a></li>
<li><a href="#">ANGGOTA</a></li>
</ul>
</li>
<li><a href="#">SEJARAH</a></li>
<li><a href="#">PROGRAM KERJA</a></li>
</ul>
</li>
<li><a href="#">AGENDA</a></li>
<li><a href="#">CONTAC</a></li>
</ul>
</div>
</div>
</body>
</html>
monggo disimak ^-^
<html>
<title>menu</title>
<head>
<style>
#MenuBox{
background:pink;
margin: 10 0 0 450;
border-radius:10px;
width: 364px;
height: 35px;
font-size: 12px;
font-family: cursive;
color:yellow;
font-weight: bold;
margin-bottom: 30px;
padding: 2px;
}
#BoxTurun {
width: 875px;
border-radius:6px;
float: left;
margin: 0;
padding: 0;
}
#Posisi {
border-radius:6px;
margin: 0;
padding: 0;
}
#Posisi ul {
border-radius:6px;
float: left;
list-style: none;
margin: 0;
padding: 0;
}
#Posisi li {
border-radius:6px;
float: left;
list-style: none;
margin: 0;
padding: 0;
}
#Posisi li a, #Posisi li a:link, #Posisi li a:visited {
border-radius:6px;
color:black;
display: block;
font-size: 16px;
font-family: Georgia;
font-weight: normal;
margin: 0;
padding: 9px 15px 8px;
}
#Posisi li a:hover, #Posisi li a:active {
border-radius:6px;
background:black;
color:blue;
margin: 0;
padding: 9px 15px 8px;
text-decoration: none;
}
#Posisi li li a, #Posisi li li a:link, #Posisi li li a:visited {
border-radius:6px;
background:pink;
width: 150px;
color:black;
font-size: 14px;
font-family: Georgia, Times New Roman;
font-weight: normal;
float: none;
margin: 0;
padding: 7px 10px;
border-bottom: 1px solid #FFF;
border-left: 1px solid #FFF;
border-right: 1px solid #FFF;
}
#Posisi li li a:hover, #Posisi li li a:active {
border-radius:6px;
background:pink;
color:black;
padding: 7px 10px;
}
#Posisi li {
border-radius:6px;
float: left;
padding: 0;
}
#Posisi li ul {
border-radius:6px;
z-index: 9999;
position: absolute;
left: -999em;
height: auto;
width: 170px;
margin: 0;
padding: 0;
}
#Posisi li ul a {
border-radius:6px;
width: 140px;
}
#Posisi li ul ul {
border-radius:6px;
margin: -32px 0 0 171px;
}
#Posisi li:hover ul ul, #Posisi li:hover ul ul ul, #Posisi li.sfhover ul ul, #Posisi li.sfhover ul ul ul {
border-radius:6px;
left: -999em;
}
#Posisi li:hover ul, #Posisi li li:hover ul, #Posisi li li li:hover ul, #Posisi li.sfhover ul, #Posisi li li.sfhover ul, #Posisi li li li.sfhover ul {
border-radius:6px;
left: auto;
}
#Posisi li:hover, #Posisi li.sfhover {
border-radius:6px;
position: static;
}
</style>
</head>
<body>
<h1> MEMBUAT MENU SCROLL DOWN </h1>
<h2> oleh TRIANA DEWI SALMA_L200120007</h2>
<HR>
<BR>
<BR>
<div id="MenuBox">
<div id="BoxTurun">
<ul id="Posisi">
<li><a href="#">MENU</a></li>
<li><a href="#">PROFIL</a>
<ul>
<li><a href="#">ORGANISASI</a>
<ul>
<li><a href="#">VISI</a></li>
<li><a href="#">MISI</a></li>
<li><a href="#">ANGGOTA</a></li>
</ul>
</li>
<li><a href="#">SEJARAH</a></li>
<li><a href="#">PROGRAM KERJA</a></li>
</ul>
</li>
<li><a href="#">AGENDA</a></li>
<li><a href="#">CONTAC</a></li>
</ul>
</div>
</div>
</body>
</html>
Inilah untuk hasilnya
Langganan:
Postingan (Atom)