Below I have a html with one transparent layer. Now I would like to make more than one, but I'm puzzled by the name "div" of the transparent layer and don't know how to declare another one. Can anyone help?
This is the HTML for the one transparent layer:
<html>
<head><title>Untitled</title>
<style type="text/css">
<!--
.tekst { color: #4c5ea1; font: 11px Arial, Helvetica, sans-serif, Arial, Helvetica, sans-serif; text-align: justify; margin-top: 0px; line-height: 16px;}
div {
border-top: 1px solid orange;
border-bottom: 1px solid orange;
border-right: 1px solid orange;
border-left: 1px solid orange;
width: 50%;
height:40%;
background-color: #ff0000;
filter:alpha(opacity=40);
}
span
{
position:absolute;
}
-->
</style>
</head>
<body>
<div>
<span class="tekst">How to make another transparent div in this html with another color and another text?</span>
</div>
</body>
</html>
This is the HTML for the one transparent layer:
<html>
<head><title>Untitled</title>
<style type="text/css">
<!--
.tekst { color: #4c5ea1; font: 11px Arial, Helvetica, sans-serif, Arial, Helvetica, sans-serif; text-align: justify; margin-top: 0px; line-height: 16px;}
div {
border-top: 1px solid orange;
border-bottom: 1px solid orange;
border-right: 1px solid orange;
border-left: 1px solid orange;
width: 50%;
height:40%;
background-color: #ff0000;
filter:alpha(opacity=40);
}
span
{
position:absolute;
}
-->
</style>
</head>
<body>
<div>
<span class="tekst">How to make another transparent div in this html with another color and another text?</span>
</div>
</body>
</html>