IE en Safari verschillen (Opgelost) 		
			
		
		 		
				
		
		
				
		21 antwoorden 
                
                     
                
                    
		
		
	             
 
            
                    
                         
                    
                    
                        
                            WouterJ                             
                         
                     
                    
                        HTML gevorderde Misschien dat het ligt aan de vele fouten in CSS en HTML:HTML CSS  
                      
                
                    
                         
                    
                    
                        
                            WimJ                             
                         
                     
                    
                        Grafische gevorderde Waldio  schreef:
Misschien dat het ligt aan de vele fouten in CSS en HTML:
HTML 
CSS   
                
                    
                         
                    
                    
                        
                            radiofreak (laatste wijziging 15/04/2010 17:37)                             
                         
                     
                    
                        Nieuw lid Het probleem met de menu is opgelost. Heb heel de site laten checken door de W3C validator en er zijn geen errors meer. Toch blijf ik een verschil tussen IE en Safari zien.http://www.apropeau.net/muzzic/index.html  
                      
                
                    
                         
                    
                    
                        
                            denniseik                             
                         
                     
                    
                        Lid Waarom gebruik je niet gewoon het hover-effect in css.  
                      
                
                    
                         
                    
                    
                        
                            radiofreak                             
                         
                     
                    
                        Nieuw lid Mag ik de code van de menu eens doorsturen? Ben niet zo'n held in Mouse-over in CSS. 
                      
                
                    
                         
                    
                    
                        
                            WouterJ (laatste wijziging 15/04/2010 20:12)                             
                         
                     
                    
                        HTML gevorderde Ik zal je wel wat helpen met CSS:hover, maar de rest moet je toch wel zelf doen:Stap 1: De menu opdelen in classes 
    
    
        
            
                li {
float: left;
width: 100px;
} 
             
            li { 
float :  left ; 
width :  100px ; 
} 
 
         
     
 
    
    
        
            
                <div id="menu">
<ul>
<li class="home"><a href="/"></a></li>
<li class="nieuws"><a href="/nieuws.html"></a></li>
<li class="contact"><a href="/contact.html"></a></li>
</ul>
 
             
            <li class = "home" ><a href = "/" ></ a / li  <li class = "nieuws" ><a href = "/nieuws.html" ></ a / li  <li class = "contact" ><a href = "/contact.html" ></ a / li   
         
     
 Stap 2: Aan de classes background-image toevoegen 
    
    
        
            
                .home{
background-image: url(/images/home.png);
background-repeat: no-repeat;
}
.nieuws{
background-image: url(images/home.png);
background-repeat: no-repeat;
}
.contact{
background-image: url(images/contact.png);
background-repeat: no-repeat;
} 
             
            .home{ 
background-image :  url ( /images/home.png ) ; 
background-repeat :  no-repeat ; 
} 
.nieuws{ 
background-image :  url ( images/home.png ) ; 
background-repeat :  no-repeat ; 
} 
.contact{ 
background-image :  url ( images/contact.png ) ; 
background-repeat :  no-repeat ; 
} 
 
         
     
 Stap 3: De :hover effecten maken voor de classes 
    
    
        
            
                .home:hover {
background-image: url(images/homehover.png);
background-repeat: no-repeat;
}
.nieuws:hover {
background-image: url(images/nieuwshover.png);
background-repeat: no-repeat;
}
.contact:hover {
background-image: url(images/contacthover.png);
background-repeat: no-repeat;
} 
             
            .home :hover  { 
background-image :  url ( images/homehover.png ) ; 
background-repeat :  no-repeat ; 
} 
.nieuws :hover  { 
background-image :  url ( images/nieuwshover.png ) ; 
background-repeat :  no-repeat ; 
} 
.contact :hover  { 
background-image :  url ( images/contacthover.png ) ; 
background-repeat :  no-repeat ; 
} 
 
         
     
 Stap 4: De hele code 
    
    
        
            
                li {
float: left;
width: 100px;
}
.home{
background-image: url(/images/home.png);
background-repeat: no-repeat;
}
.nieuws{
background-image: url(images/home.png);
background-repeat: no-repeat;
}
.contact{
background-image: url(images/contact.png);
background-repeat: no-repeat;
}
.home:hover {
background-image: url(images/homehover.png);
background-repeat: no-repeat;
}
.nieuws:hover {
background-image: url(images/nieuwshover.png);
background-repeat: no-repeat;
}
.contact:hover {
background-image: url(images/contacthover.png);
background-repeat: no-repeat;
} 
             
            li { 
float :  left ; 
width :  100px ; 
} 
.home{ 
background-image :  url ( /images/home.png ) ; 
background-repeat :  no-repeat ; 
} 
.nieuws{ 
background-image :  url ( images/home.png ) ; 
background-repeat :  no-repeat ; 
} 
.contact{ 
background-image :  url ( images/contact.png ) ; 
background-repeat :  no-repeat ; 
} 
.home :hover  { 
background-image :  url ( images/homehover.png ) ; 
background-repeat :  no-repeat ; 
} 
.nieuws :hover  { 
background-image :  url ( images/nieuwshover.png ) ; 
background-repeat :  no-repeat ; 
} 
.contact :hover  { 
background-image :  url ( images/contacthover.png ) ; 
background-repeat :  no-repeat ; 
} 
 
         
     
 
    
    
        
            
                <div id="menu">
<ul>
<li class="home"><a href="/"></a></li>
<li class="nieuws"><a href="/nieuws.html"></a></li>
<li class="contact"><a href="/contact.html"></a></li>
</ul>
 
             
            <li class = "home" ><a href = "/" ></ a / li  <li class = "nieuws" ><a href = "/nieuws.html" ></ a / li  <li class = "contact" ><a href = "/contact.html" ></ a / li   
         
     
  
                     
                            Bedankt door: radiofreak  
                          
                
                    
                         
                    
                    
                        
                            radiofreak                             
                         
                     
                    
                        Nieuw lid Eerst en vooral bedankt dat u mij wilt helpen...http://apropeau.net/muzzic/cssmenu.html  
                      
                
                    
                         
                    
                    
                        
                            genkstar                             
                         
                     
                    
                        Nieuw lid Je moet een hoogte en een breedtje instellen bij elke image 
                      
                
                    
                         
                    
                    
                        
                            radiofreak                             
                         
                     
                    
                        Nieuw lid Perfect, werkt zoals het moet... Nu zouden de buttons enkel nog gecentreerd moeten staan in de menu. Heb al eens geprobeerd met text-align: center;, maar helaas geen resultaat. 
                      
                
                    
                         
                    
                    
                        
                            Martijn (laatste wijziging 16/04/2010 12:22)                             
                         
                     
                    
                        Crew PHP even een kortere versie:
    
    
        
            
                
.home{background: url('images/home.png') no-repeat;}
.home:hover {background: url('images/homehover.png') no-repeat;} 
             
            .home { background :  url ( 'images/home.png' )  no-repeat ; } 
.home :hover  { background :  url ( 'images/homehover.png' )  no-repeat ; } 
 
         
     
  
                     
                            Bedankt door: radiofreak  
                          
                
                    
                         
                    
                    
                        
                            Mikee                             
                         
                     
                    
                        Nieuw lid Dat het sneller laat ben ik het mee eens maar overzichtelijker word het niet als je grote stylesheets hebt. 
                      
                
                    
                         
                    
                    
                        
                            Martijn (laatste wijziging 16/04/2010 13:41)                             
                         
                     
                    
                        Crew PHP Vind je dit:
    
    
        
            
                .home{
background-image: url(/images/home.png);
background-repeat: no-repeat;
}
.nieuws{
background-image: url(images/home.png);
background-repeat: no-repeat;
}
.contact{
background-image: url(images/contact.png);
background-repeat: no-repeat;
}
.home:hover {
background-image: url(images/homehover.png);
background-repeat: no-repeat;
}
.nieuws:hover {
background-image: url(images/nieuwshover.png);
background-repeat: no-repeat;
}
.contact:hover {
background-image: url(images/contacthover.png);
background-repeat: no-repeat;
}
} 
             
            .home{ 
background-image :  url ( /images/home.png ) ; 
background-repeat :  no-repeat ; 
} 
.nieuws{ 
background-image :  url ( images/home.png ) ; 
background-repeat :  no-repeat ; 
} 
.contact{ 
background-image :  url ( images/contact.png ) ; 
background-repeat :  no-repeat ; 
} 
.home :hover  { 
background-image :  url ( images/homehover.png ) ; 
background-repeat :  no-repeat ; 
} 
.nieuws :hover  { 
background-image :  url ( images/nieuwshover.png ) ; 
background-repeat :  no-repeat ; 
} 
.contact :hover  { 
background-image :  url ( images/contacthover.png ) ; 
background-repeat :  no-repeat ; 
} 
} 
 
         
     
 
    
    
        
            
                
.home   {background: url('images/home.png')   no-repeat;}
.nieuws {background: url('images/home.png')    no-repeat;}
.contact{background: url('images/contact.png') no-repeat;}
.home:hover    {background: url('images/homehover.png');   no-repeat;}
.nieuws:hover  {background: url('images/nieuwshover.png')  no-repeat;}
.contact:hover {background: url('images/contacthover.png') no-repeat;} 
             
            .home    { background :  url ( 'images/home.png' )    no-repeat ; } 
.nieuws  { background :  url ( 'images/home.png' )     no-repeat ; } 
.contact { background :  url ( 'images/contact.png' )  no-repeat ; } 
.home :hover     { background :  url ( 'images/homehover.png' ) ;    no-repeat ; } 
.nieuws :hover   { background :  url ( 'images/nieuwshover.png' )   no-repeat ; } 
.contact :hover  { background :  url ( 'images/contacthover.png' )  no-repeat ; } 
 
         
     
  
                      
                
                    
                         
                    
                    
                        
                            genkstar                             
                         
                     
                    
                        Nieuw lid Je hebt geen  
                      
                
                    
                         
                    
                    
                        
                            radiofreak                             
                         
                     
                    
                        Nieuw lid Klopt, nu is het inorde... Iemand een idee hoe ik alles mooi kan centreren? 
                      
                
                    
                         
                    
                    
                        
                            genkstar (laatste wijziging 16/04/2010 14:48)                             
                         
                     
                    
                        Nieuw lid maak een div en geeft de attribute class de waarde menulist 
                     
                            Bedankt door: radiofreak  
                          
                
                    
                         
                    
                    
                        
                            WouterJ                             
                         
                     
                    
                        HTML gevorderde Dat klopt. Dan moet je wat meer dingen aanpassen met CSS.Stap 1: Eerst de link een naam geven en in een span zetten 
    
    
        
            
                <div id="menu">
<ul>
<li class="home"><a href="/"><span>Home</span></a></li>
<li class="nieuws"><a href="nieuws.html"><span>Nieuws</span></a></li>
<li class="contact"><a href="contact.html"><span>Contact</span></a></li>
</ul> 
             
            <li class = "contact" ><a href = "contact.html" ><span  Contact
</ span / a / li   
         
     
 Stap 2: De span laten verdwijnen Stap 3: Van de link een blok maken die evengroot is als het plaatje 
    
    
        
            
                a{
display: block;
width: 100px;
height: 50px;
} 
             
            a{ 
display :  block ; 
width :  100px ; 
height :  50px ; 
} 
 
         
     
 Stap 4: De hele code 
    
    
        
            
                span{
display: none;
}
a{
display: block;
width: 100px;
height: 50px;
} 
             
            span{ 
display :  none ; 
} 
a{ 
display :  block ; 
width :  100px ; 
height :  50px ; 
} 
 
         
     
 
    
    
        
            
                <div id="menu">
<ul>
<li class="home"><a href="/"><span>Home</span></a></li>
<li class="nieuws"><a href="nieuws.html"><span>Nieuws</span></a></li>
<li class="contact"><a href="contact.html"><span>Contact</span></a></li>
</ul> 
             
            <li class = "contact" ><a href = "contact.html" ><span  Contact
</ span / a / li   
         
     
  
                      
                
                    
                         
                    
                    
                        
                            radiofreak (laatste wijziging 16/04/2010 23:03)                             
                         
                     
                    
                        Nieuw lid Ja, dit is de oplossing, allemaal heel erg bedankt!http://www.apropeau.net/muzzic/index.html  
                      
                
                    
                         
                    
                    
                        
                            kiwi (laatste wijziging 16/04/2010 23:56)                             
                         
                     
                    
                        Nieuw lid Dit komt omdat er niet hetzelfde staat:
    
    
        
            
                <div id="beluister"><p class="tunein"><a href="http://www.apropeau.net/luisterdanceup" target="_blank"></a></p></div>
<a href="index.html" target="_blank"></a>
<div id="nowplaying"><iframe src="http://www.apropeau.net/nowplaying/nowplaying%20website.php" name="nowplaying" width="400" height="45" scrolling="no" frameborder="0"></iframe></div>
</div> 
             
            < div id= "beluister" >< p class = "tunein" >< a href= "http://www.apropeau.net/luisterdanceup"  target= "_blank" ></ a></ p></ div> 
< a href= "index.html"  target= "_blank" ></ a> 
 
< div id= "nowplaying" >< iframe src= "http://www.apropeau.net/nowplaying/nowplaying%20website.php"  name= "nowplaying"  width= "400"  height= "45"  scrolling= "no"  frameborder= "0" ></ iframe></ div> 
</ div> 
 
         
     
  
    
    
        
            
                <div id="beluister"><a href="http://www.apropeau.net/luisterdanceup" target="_blank"><img src="images/tunein.png" alt="tunein"></a></div>
<a href="index.html" onMouseOver="document.mouseover6.src=tuneinover.src" onMouseOut="document.mouseover6.src=tunein.src" target="_blank"></a>
<div id="nowplaying"><iframe src="http://www.apropeau.net/nowplaying/nowplaying%20website.php" name="nowplaying" width="400" height="45" scrolling="no" frameborder="0"></iframe></div>
</div>
 
             
            < div id= "beluister" >< a href= "http://www.apropeau.net/luisterdanceup"  target= "_blank" >< img src= "images/tunein.png"  alt= "tunein" ></ a></ div> 
< a href= "index.html"  onMouseOver= "document.mouseover6.src=tuneinover.src"  onMouseOut= "document.mouseover6.src=tunein.src"  target= "_blank" ></ a> 
 
< div id= "nowplaying" >< iframe src= "http://www.apropeau.net/nowplaying/nowplaying%20website.php"  name= "nowplaying"  width= "400"  height= "45"  scrolling= "no"  frameborder= "0" ></ iframe></ div> 
</ div> 
 
         
     
  mss eens de "<p class="tunein"> ... </p> " bij de andere toevoegen? 
                      
                
                    
                         
                    
                        
		
		
	             
 
                
Dit onderwerp is gesloten .