ShoutMix chat widget

Rabu, 06 Juni 2012

web desain ke 4

CSS
contoh pertama

<html>
<head>
<title>mencoba</title>
<!-- Eksternal -->
<link rel="stylesheet" type="text/css" href="style.css">

<!-- Internal -->
<style>
H2{
color:blue;
}
</style>


</head>
<body>
<!-- inline -->
<h1 style="color:red">inline</h1>

<!-- Internal -->
<H2>INTERNAL CSS</H2>

<!-- Ekternal -->
<H3>EKTERNAL CSS</H3>

</body>
</html>


mencoba

inline

INTERNAL CSS

EKTERNAL CSS

 

 

<html>
<head>
<title>mencoba</title>

<style>
afandi {
color: green;
}
.afandi
{
  color:blue;
}
#erda {
color: red;

}

</style>


</head>
<body>
<afandi>oke oke oke</afandi>
<h1 class="afandi">oke oke oke</h1>
<h1 id="afandi2">oke oke oke</h1>

</body>
</html>

Contoh kedua

mencoba oke oke oke

oke oke oke

oke oke oke

 

Selector {
preperty : value;
}

selector
   berisi : tag hhtm
              class
              id

property
   berisi : aturan/rule
              perintah

Value
    berisi : b.ing(red,top,center)
               hexadecimal(#fff)
              rgb
              persen
              pixel


Senin, 04 Juni 2012

web desain css


mencoba java script <html>
<head>
<title>mencoba css</title>
<style>
#nav{

list-style-type:none;
margin:0;
padding: 0;
width: 180px;
background-color:#663300;
float : left;
}
#nav li{
margin : 0;
padding: 0;
float : left;
width:100%;
}

#nav a{
display : block;
color :#fff;
text-decoration:none;
padding : 0 15px;
line-height :2.5;
border-bottom : 1px solid #fff;
cursor:pointer;
}

#nav a:hover{
background:#330000;



}

#nav2{

list-style-type:none;
margin:0;
padding: 0;
background-color:#663300;
float : left;
}
#nav2 li{
margin : 0;
padding: 0;
float : left;

}

#nav2 a{
width:127px;
float:left;
text-align:center;
color :#fff;
text-decoration:none;
line-height :2;
border-right :1px solid #fff;

}




h1{
cursor:pointer;
text-shadow:1px 1px 1px blue;
 
}


</style>

</head>
<body>

<H1>menu vertical triswan</h1>

<ul id="nav">

<li><a href="">Home</a></li>
<li><a href="">Profil</a></li>
<li><a href="">Gallery</a></li>
<li><a href="">Contact</a></li>

</ul>
<br><br><br><br><br><br><br><br>
<H1>menu Horizontal triswan</h1>

<ul id="nav2">

<li><a href="">Home</a></li>
<li><a href="">Profil</a></li>
<li><a href="">Gallery</a></li>
<li><a href="">Contact</a></li>

</ul>

</body>
</html>







 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Online Project management