Jump to content

Trying to get a DIV to show up on a hover state...


Jim R

Recommended Posts

Here is my to generate a list, which is hidden other than a link (Offers) to signify there are existing offers.  

			echo '<div class="colleges">[<a href="#"><span class="lists">Offers</span></a>]</div>';
			echo '<div id="list">';
		//	Turn CSV into unordered list
			$offersList = $line['colleges'];
			$offersList = explode(", ",$offersList);
			asort($offersList);
				foreach ($offersList as $offers) {
				echo '<li>' . $offers . '</li>';
		}
			echo '</div>';
		}

When a User hovers over the [Offers] link, I'd like the list to show up:

#list {
	display: none;
}

#list a:hover {
	display: block;
}

Nothing changes when I hover over Offers

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.