Jump to content

quick question: hover on a class


Gekk0

Recommended Posts

Is this right?

 

.menuItem {
padding-right:10px;
padding-left:10px;
padding-top:5px;
padding-bottom:5px;
background-color: #abd0e5;
border-width: 1px;
}

.menuItem a:link {
padding-right:10px;
padding-left:10px;
padding-top:5px;
padding-bottom:5px;
background-color: #abd0e5;
border-width: 1px;
}

.menuItem a:hover {
padding-right:10px;
padding-left:10px;
padding-top:5px;
padding-bottom:5px;
background-color: #9fc4d9;
border-width: 1px;
}

 

So the menu item background color is supposed to change when on hover, but it isn't working, my css isn't really what it should be  ::) but umm.. yeah

Link to comment
https://forums.phpfreaks.com/topic/199333-quick-question-hover-on-a-class/
Share on other sites

I'm building up a menu like this:

 

<div class="menu">
<a href="index.php" class="menuItemSelected">Home</a> 
<a href="index.php?page=makebooking" class="menuItem">Request A Booking</a> 
<a href="index.php?page=bookingReq" class="menuItem">Booking Requests</a> 
<a href="index.php?page=bookings" class="menuItem">Manage Bookings</a> 
<a href="index.php?page=calendar" class="menuItem">Calendar</a> 
<a href="index.php?page=vehicles" class="menuItem">Vehicles</a> 
<a href="index.php?page=users" class="menuItem">Users</a> 
<a href="index.php?page=settings" class="menuItem">Settings</a> 
<a href="index.php?action=logout" class="menuItem">Logout</a> 
</div>

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.