I have designed my website with 4 tabs on the homepage: holidays, hospitality, events, and consulting. I am trying to create an effect where hovering over the tabs displays images. Here is the code I have tried:
HTML:
<div class="menu_links">
<div style="margin-left:40px;width:150px;height:33px;-webkit-border-radius: 50px;-moz-border-radius: 50px;border-radius: 50px;border:3px solid #CC9900;background-color:#FFD630;"> <a href="javascript:void(0);"><b>H</b>olidays</a>
</div>
</div>
<div class="menu_links">
<div style="margin-left:40px;width:150px;height:33px;-webkit-border-radius: 50px;-moz-border-radius: 50px;border-radius: 50px;border:3px solid #CC9900;background-color:#FFD630;"> <a href="javascript:void(0);"><b>H</b>ospitality</a>
</div>
</div>
<div class="menu_links">
<div style="margin-left:40px;width:150px;height:33px;-webkit-border-radius: 50px;-moz-border-radius: 50px;border-radius: 50px;border:3px solid #CC9900;background-color:#FFD630;"> <a href="javascript:void(0);"><b>E</b>vents</a>
</div>
</div>
<div class="menu_links">
<div style="margin-left:40px;width:150px;height:33px;-webkit-border-radius: 50px;-moz-border-radius: 50px;border-radius: 50px;border:3px solid #CC9900;background-color:#FFD630;"> <a href="javascript:void(0);"><b>C</b>onsultant</a>
</div>
</div>
CSS:
.menu_links {
height:85px;
width:250px;
float:left;
margin:5px 0px 0px 0px;
}
.menu_links a {
float:left;
width:150px;
margin:5px 0px 0px 0px;
padding:0px 0px 0px 0px;
text-align:center;
color:#000000;
text-decoration:none;
}
.menu_links:hover {
width:250px;
height:183px;
top:50px;
background: #FF9933;
font-size:25px;
z-index:9999;
background-image:url('../images/holidays_bg.jpg');
}