I have a rollover menu that displays the days of the week. They originally sat happily side by side each other with an image that appeared when hovered over. Now I'm trying to get text and an image to appear when you hover over a day. The text works on the first day ("Thurs") but the rest of the days don't appear, nor does the hover image background.
What am I doing wrong? Pls go easy on me, i'm trying!
I've also made a jsfiddle (this is how the menu originally looked)
THE HTML
<div id="nav">
<ul class="menu">
<li>
<div class="img1 left"> <a href="" id="thursButton" class="thursButton"></a>
<p>Somewhere Only We Know Lily Allen
<br/>Story Of My Life One Direction
<br/>
</p>
</div>
</li>
<li>
<div class="img2 left"> <a href="" id="friButton" class="friButton"></a>
<p>Somewhere Only We Know Lily Allen
<br/>Story Of My Life One Direction
<br/>
</p>
</div>
</li>
<li>
THE CSS
#nav {
display:inline;
list-style: none;
position: fixed;
width: 1290px;
margin: 0 auto;
left:0px;
right:0px;
float:clear;
top: 120px;
z-index: 1000;
}
.menu li {
display: inline;
vertical-align:top;
float:left;
}
.menu li a {
display: block;
height: 407px;
width:250px;
text-indent: -999999px;
}
.img1 {
width: 250px;
height: 407px;
position: relative;
}
.thursButton {
width:250px;
height:177px;
display:block;
}
#thursButton {
background-image:url('http://static.tumblr.com/2wdsnoc/K8umxhswx/thu.png');
}
.thursButton:hover {
background-image:url('http://static.tumblr.com/2wdsnoc/6Rxmxht1d/thu-hover.png');
}
.img2 {
width: 250px;
height: 407px;
position: relative;
}
.satButton {
width:250px;
height:177px;
display:block;
}
#satButton {
background-image:url(http://static.tumblr.com/2wdsnoc/drJmxhstf/sat.png');
}
.satButton:hover {
background-image:url('http://static.tumblr.com/2wdsnoc/qfsmxhstx/sat-hover.png');
}
.left p {
color: #FFFFFF;
display: none;
font-size: 18px;
left: 10px;
position: absolute;
text-shadow: 1px 1px 1px #000000;
top: 100px;
width: 250px;
}
.left:hover p {
display:block;
}
must be
. You are closing
and twice...
– FLX Dec 13 '13 at 15:33` is generally accepted as usage du jour (http://stackoverflow.com/questions/1946426/html-5-is-it-br-br-or-br) But jsfiddle always complains. It's perfectly valid for HTML documents, if not XHTML it should be used vs `
` – SW4 Dec 13 '13 at 15:35
but the rest of the menu still isn't appearing – Social Monster Dec 13 '13 at 15:44