Hoe zorg ik hier voor?

Status
Niet open voor verdere reacties.

jorenman

Gebruiker
Lid geworden
27 jul 2013
Berichten
222
HTML:
<!doctype html>
<html>
<head>
<title>21</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
     $("#overbody").hide();
})	 
$(document).ready(function(){
     $("#body").mouseenter(function(){
	     $("#overbody").fadeIn();    
     })
})
$(document).ready(function(){
     $("#overbody").mouseleave(function(){
	     $("#overbody").fadeOut();    
     })
})


</script>
</head>
<body>
<div id="header">
     <div id="logo">
	     <center><font face="Verdana" size="5px" color="#1d72b3">Hier komt het logo te staan</font></center>
     </div>
	 <div id="navmenu">
	     <ul>
		     <li><a href="#">Home</a></li>
			 <li><a href="#">Over ons</a></li>
			 <li><a href="#">Blog</a></li>
			 <li><a href="#">Contact</a></li>
	 </div>
</div>
<div id="body">
     <img src="tower-bridge.jpg" height="700px" width="100%">
</div>
<div id="overbody">
     <div id="tekst">
	     Hier kunt uw wat tekst neerzetten
	 </div>
     <li><a href="#">Learn More</a></li>
</div>
<div id="footer"> 

</div>
</body>
</html>

HTML:
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
 margin: 0;
 padding: 0;
 border: 0;
 font-size: 100%;
 font: inherit;
 vertical-align: baseline;
 }
body {
margin: 0;
}
p {
margin: 0;
}
#header {
margin: 0;
width: 100%;
float: left; 
border-bottom: 2px solid #1d72b3;
height: 100px;
background: #232323;
}
#logo {
margin-left: 8%;
margin-top: 10px;
line-height: 80px;
width: 30%;
border: 1px solid #1d72b3;
float: left;
}
#navmenu {
margin-left: 52%;
margin-top: 10px;
height: 70px;
width: 45%;
}
#navmenu ul {
margin-top: 30px;
padding: 0;
list-style: none;
}
#navmenu li {
float: left;
height: 40px;
width: 24%;
display: block;
text-align: center;
}
#navmenu ul li a {
font-family: Verdana;
color: #1d72b3;
font-size: 25px;
text-decoration: none;
opacity: 0.5;
}
#navmenu ul li a:hover {
opacity: 1;
}
#body {
margin: 0;
width: 100%;
height: 700px;
}
#overbody {
margin-top: -600px;
height: 700px;
width: 100%;
background: #000;
position: relative;
z-index: 2;
opacity: 0.6;
float: left;
}
#tekst {
margin-top: 300px;
margin-left: 15%;
height: 100px;
width: 20%;
font-family: Verdana;
font-size: 15px;
color: #fff;
}
#overbody li {
margin-left: 15%;
background: #1d72b3;
line-height: 50px;
width: 10%;
border-radius: 15px;
text-align: center;
list-style: none;
opacity: 1;
}
#overbody li a {
font-family: Verdana;
font-size: 15px;
text-decoration: none;
color: #fff;
opacity: 1;
}
#footer {
margin: 0;
height: 100px;
width: 100%;
background: #000;
}

Dit is een HTML en een CSS bestand.
Weet iemand hoe ik ervoor zorg dat #overbody li en #tekst geen opacity van 0.6 hebben, maar gewoon helemaal geen opacity hebben?

Ik heb het geprobeerd om te veranderen in CSS, maar dat had helaas geen effect.
 
Werk je ook met een programma, of doe je alles in Kladblok / Notepad ++?
Iets meer informatie is wel gewenst.
 
Ik doe alles met Notepad++, ik gebruik er verder geen programma voor.

#overbody heb ik een opacity van 0.6 gegeven, daardoor krijgen #overbody li en #tekst ook een opacity van 0.6.
Maar ik wil juist dat #overbody li en #tekst een opacity van 1 hebben, hoe zorg ik hier voor?
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan