Hey ik ben nieuw in css en html ben nog lerende en had een vraag over transparant.
Ik heb een witte menu link gemaakt met roze achtergrond maar wnr ik iets wil selecteren is de witte deel ook getransparanteerd en da wil ik niet .
Kan iemand me helpen??
Alvast bedankt.
CSS
*
{
margin:0px;
padding:0px;
}
body
{
background-color:#f4f4f4;
}
.wrapper
{
width:1010px;
}
.logo
{
background-image:url(logo.png);
width:457px;
height:145px;
float:right;
margin-right:145px;
}
.menu
{
background-image:url(menu.bg.png);
width:875px;
height:50px;
}
.menu ul li
{
float:left;
height:50px;
}
.menu ul li a
{
color:white;
margin-top:10px;
text-decoration:none;
font-family:"Century Gothic";
font-weight:bold;
height:32px;
padding-top:6px;
text-align:center;
}
.menu ul li a:hover
{
background-color:#000;
color:#fff;
filter:alpha(opacity=50);
opacity:50;
-moz-opacity:50;
height:32px;
}
.home a
{
width:75px;
}
.overons a
{
width:100px;
}
.diensten a
{
width:95px;
}
.dagactiviteiten a
{
width:145px;
}
.scholing a
{
width:95px;
}
.fotoboek a
{
width:95px;
}
.vacatures a
{
width:110px;
}
.contact a
{
width:90px;
}
.link a
{
width:50px;
}
.contentleft
{
float:left;
}
.contentleft1
{
background-image:url(content1.png);
width:875px;
height:20px;
}
.contentleft2
{
background-image:url(content2.png);
background-repeat:repeat-y;
width:875px;
height:5px;
}
.contentleft3
{
background-image:url(content3.png);
width:875px;
height:20px;
background-repeat:no-repeat;
}
.contentmain
{
float:left;
}
.contentmain2
{
float:left;
}
.contentmainleft
{
width:600px;
height:644px;
}
.titel
{
font-size: small;
}
.divider
{
background-image:url(divider1.png);
width:595px;
height:20px;
}
.contentmainleft img
{
float:left;
}
.contentmainright
{
width:200px;
float:left;
}
.divider3
{
background-image:url(divider3.png);
width:20px;
height:400px;
float:left;
margin-top:40px;
}
.titel2
{
font-size: small;
margin-left:15px;
}
.recimg
{
background-image:url(foto2.png);
width:187px;
height:235px;
}
.contentrigth
{
}
.footer
{
background-image:url(footer.bg.png);
width:875px;
height:50px;
padding-left:250px;
padding-top:15px;
}
.footer a
{
color:black;
}
.footer a:hover
{
color:white;
text-decoration:none;
}
Ik heb een witte menu link gemaakt met roze achtergrond maar wnr ik iets wil selecteren is de witte deel ook getransparanteerd en da wil ik niet .
Kan iemand me helpen??
Alvast bedankt.
HTML:
<html>
<head>
<title>Home</title>
<link href="sean.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="wrapper">
<div class="logo"> </div>
<div class="menu">
<ul>
<li class="home"><a href="Home.html">Home </a></li>
<li class="overons"><a href="Home.html">Over ons </a></li>
<li class="diensten"><a href="Home.html">Diensten </a></li>
<li class="dagactiviteiten"><a href="Home.html">Dagactiviteiten </a></li>
<li class="scholing"><a href="Home.html">Scholing </a></li>
<li class="fotoboek"><a href="Home.html">Fotoboek </a></li>
<li class="vacatures"><a href="Home.html">Vacatures </a></li>
<li class="contact"><a href="Home.html">Contact </a></li>
<li class="link"><a href="Home.html">Link </a></li>
</ul>
</div>
<div class="contentleft">
<div class="contentleft1"> </div>
<div class="contentleft2" >
<div class="contentmain">
<div class="contentmainleft">
<div class="titel"> <b>Welkom bij Sean Pro</b></div>
<div class="divider"> </div>
<img src="foto1.png"/>
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing
elit, sed diam nonummy nibh euismod tincidunt ut
laoreet dolore magna aliquam erat volutpat. Ut wisi
enim ad minim veniam, quis nostrud exerci tation
ullamcorper suscipit lobortis nisl ut aliquip ex ea
, sed diam nonummy nibh euismod tincidunt ut
laoreet dolore magna aliquam erat volutpat. Ut wisi
enim ad minim veniam, quis nostrud exerci tation
ullamcorper suscipit lobortis nisl ut aliquip ex ea
</p>
<ul>
<li>Ja</li>
<li>Yes</li>
<li>Evet</li>
<li>Qui</li>
</ul>
<p>
consequat. Duis autem vel eum iriure dolor in
hendrerit in vulputate vecommodolit esse molestie consequat,
vel illum dolore eu feugiat nulla facilisis at vero
eros et accumsan et iusto odio dignissim qui blandit
praesent luptatum zzril delenit augue duis dolore te
feugait nulla facilisi.Lorem ipsum dolor sit amet,
consectetuerLorem ipsum adipiscing elit, sed diam
eros et accumsan et iusto odio dignissim qui blandit
praesent luptatum zzril delenit augue duis dolore te
feugait nulla facilisi.Lorem ipsum dolor sit amet,
consectetuerLorem ipsum adipiscing elit, sed diam
</p>
</div>
</div>
<div class="contentmain2">
<div class="divider3"> </div>
<div class="contentmainright">
<div class="titel2"> <b>Reclame</b> </div>
<img src="divider2.png" />
<div class="recimg"></div>
</div>
</div>
</div>
<div class="contentleft3"></div>
<div class="footer"> <a href="http://dall.nl" target="_blank">Copyright 2009. Website made by Selim Oruc</a> </div>
</div>
<div class="contentrigth"> <img src="fotos.png"/> </div>
</div>
</body>
</html>
CSS
*
{
margin:0px;
padding:0px;
}
body
{
background-color:#f4f4f4;
}
.wrapper
{
width:1010px;
}
.logo
{
background-image:url(logo.png);
width:457px;
height:145px;
float:right;
margin-right:145px;
}
.menu
{
background-image:url(menu.bg.png);
width:875px;
height:50px;
}
.menu ul li
{
float:left;
height:50px;
}
.menu ul li a
{
color:white;
margin-top:10px;
text-decoration:none;
font-family:"Century Gothic";
font-weight:bold;
height:32px;
padding-top:6px;
text-align:center;
}
.menu ul li a:hover
{
background-color:#000;
color:#fff;
filter:alpha(opacity=50);
opacity:50;
-moz-opacity:50;
height:32px;
}
.home a
{
width:75px;
}
.overons a
{
width:100px;
}
.diensten a
{
width:95px;
}
.dagactiviteiten a
{
width:145px;
}
.scholing a
{
width:95px;
}
.fotoboek a
{
width:95px;
}
.vacatures a
{
width:110px;
}
.contact a
{
width:90px;
}
.link a
{
width:50px;
}
.contentleft
{
float:left;
}
.contentleft1
{
background-image:url(content1.png);
width:875px;
height:20px;
}
.contentleft2
{
background-image:url(content2.png);
background-repeat:repeat-y;
width:875px;
height:5px;
}
.contentleft3
{
background-image:url(content3.png);
width:875px;
height:20px;
background-repeat:no-repeat;
}
.contentmain
{
float:left;
}
.contentmain2
{
float:left;
}
.contentmainleft
{
width:600px;
height:644px;
}
.titel
{
font-size: small;
}
.divider
{
background-image:url(divider1.png);
width:595px;
height:20px;
}
.contentmainleft img
{
float:left;
}
.contentmainright
{
width:200px;
float:left;
}
.divider3
{
background-image:url(divider3.png);
width:20px;
height:400px;
float:left;
margin-top:40px;
}
.titel2
{
font-size: small;
margin-left:15px;
}
.recimg
{
background-image:url(foto2.png);
width:187px;
height:235px;
}
.contentrigth
{
}
.footer
{
background-image:url(footer.bg.png);
width:875px;
height:50px;
padding-left:250px;
padding-top:15px;
}
.footer a
{
color:black;
}
.footer a:hover
{
color:white;
text-decoration:none;
}
Laatst bewerkt: