Web Programming:Activity 5

 







HTML CODE:


<DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="backgroundcode.css">
</head>
<body>

<style>
body {background-color: black;}
    h1 {color: white;}
    p  {color: white;}
</style>


<center> <h1>Transparent Box</h1> </center>
<center> <p>With opacity:</p> </center>
<div class="row">
<div class="column" style"opacity:0.1;">
<h1>10% opacity</h1>
</div>

<div class="column" style="opacity:0.3;">
<h1>30% opacity</h1>
</div>
</div>
<div style="opacity:0.6;">
<h1>60% opacity</h1>
</div>

<div>
<h1>opacity</h1>
</div>

<center> <p>With RGBA color values:</p> </center>
<div class="first">
<h1>10% opacity</h1>
</div>

<div class="second">
<h1>30% opacity</h1>
</div>

<div class="third">
<h1>60% opacity</h1>
</div>

<div class="fourth">
<h1>80% opacity</h1>
</div>

<div>
<h1>default</h1>
</div>

</body>
</html>

CSS CODE:


div { 
background: rgb(234, 0,58, 100);
}

div.first { 
background: rgb(0, 128, 10,0.1);
}

div.second { 
background: rgb(230, 70, 53,90, 0.3);
}

div.third { 
background: rgb(0, 128, 0, 0.6);
}

div.fourth { 
background: rgb(0, 150, 0, 0.8);
}



Comments

Popular posts from this blog

Activity #4 (Finals) Password form to open your blog

Activity #3 (Finals) Counting Drill Game