I designed a web page, having horizontal menu using UL and LI tags;
I need to be set rollover effect for a menu items.
whenever user hover on a menu item, the entire item(including anchor tag text) has to change to another color,
but since iam using anchor tag in LI tag, the text in the menu item is not changing color when i hover on the menu item(LI). (but changing color when i hover on the anchor tag Text).
But i want the entire item(including anchor tag text) has to change to another color,
whenever user hover on a menu item(LI).
(i think Iam clear to explain, If not please excuseme)
here is the entire code i have used for designing page
please verify my code and tell me necessary changes to make it possible.
---------------html file------------
Expand|Select|Wrap|Line Numbers
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <title>index</title>
- <link href="consult.css" rel="stylesheet" type="text/css" />
- <link href="menu.css" rel="stylesheet" type="text/css" />
- <link href="style.css" rel="stylesheet" type="text/css" />
- <script src="jsfiles/login.js" type="text/javascript" language="javascript"></script>
- </head>
- <body class="bdy" onload="disableButton()">
- <!--wrap-->
- <div id="wrap">
- <!-- hedr -->
- <div id="hedr">
- <!-- MarQuee -->
- <div id="marq">
- <marquee behavior="scroll" direction="left" width="100%"><img src="imgs/123.gif" style=""></marquee>
- </div>
- <!-- ends marquee -->
- <!-- LogIn info -->
- <div id="stsup">
- <table width=358 height="25" border='0' style="border-collapse: collapse" cellspacing='0' cellpadding='1' align="left">
- <tr>
- <td width="87" height=20 valign="top" ><div><span class="para" style="color:white"> Admin Login</span></div></td>
- <td width="297" valign="middle">
- <form id="loginForm" method="POST" action="innerpages/jobs.php">
- <div align="left" class="para">
- <input id="email" name="username" type="text" value="username" class="ltxt" onclick="clrtxt1()" onfocus="clrtxt1()"/>
- <input id="password" name="password" type="password" value="password" class="ltxt" onclick="clrtxt2()" onfocus= "clrtxt2()" onblur="chklog()" />
- <input type="submit" id="submitbtn" name="submitbtn" value="Login" class="lbtn" />
- </div>
- </form> </td>
- </tr>
- </table>
- </div>
- <!-- ends loginfo -->
- </div>
- <!-- ends hedr -->
- <!-- menu -->
- <div id="nav">
- <ul class="menu2" >
- <li ><a href="consult.html" title="Aboutus" class="active"><span>Aboutus</span></a></li>
- <li ><a href="innerpages\clients.html" title="Clients"><span>Clients</span></a></li>
- <li ><a href="innerpages\outsource.html" title="Outsourcing"><span >Out sourcing</span></a></li>
- <li ><a href="innerpages\jobsdispay.php" title="Jobs"><span >Jobs</span></a></li>
- <li ><a href="innerpages\testing.html" title="Testing"><span >Testing</span></a></li>
- <li ><a href="innerpages\conus.html" title="Contactus"><span >Contactus</span></a></li>
- </ul>
- </div>
- <!-- ends menu-->
- <!-- content -->
- <div id="cntnt">
- <table border="0" cellspacing="0" cellpadding="0" width="695" class="tblimg">
- <tr>
- <td width="541" valign="top">
- <span class="para1">About Blue Berry</span><br /><br />
- <span class="para">
- Blue Berry is a premiere information technology services company specializing in Staffing Services,and Testing Services. Blue Berrys goal is to consistently provide the highest quality service and technical expertise for our information technology clients, delivered by professionals who have both academic and applied experience.<br /><br />
- Blue Berry is engaged in the business of working with organizations, to understand and meet the requirement imperatives of the ever changing and growing Industry, providing them with the competitive advantage with the intellectual capital and cutting-edge technology solutions,we offer Contract/Contract-to-Hire. <br /><br />
- </span></td>
- <td align="right" width="154" style="padding:0px;"><div id="img1"></div></td>
- </tr>
- <tr>
- <td height="311" colspan="2">
- <span class="para">
- Help when you need it <br />
- Concentrating on your core business is the top priority, so when technology issues arise they can be distracting and taxing on your internal resources. We provide assistance to augment your resources with the talent you need.<br /><br />
- Delivering Optimal Workforce Flexibility<br />
- At Blue Berry, we offer skilled technology talent that delivers the professional expertise you need, when you need it -- from short-term and long-term contract assignments to contract-to-hire and direct-hire placements. We are uniquely structured to recruit, screen, deploy and manage a technical workforce anywhere in the United States. <br /><br />
- Ensuring Quality in Every Hire<br />
- With offices strategically located throughout the country, we offer technology professionals for every level of your organization, from help desk technicians to CIOs. And, our comprehensive recruiting and screening process is one of the most robust in the industry. <br /><br />
- It includes: <br />
- Interviews <br />
- Reference & background checks <br />
- Drug screening <br />
- Soft-skills assessment <br />
- Technical proficiency testing<br />
- Whether you're looking for contract, contract-to-hire or direct-hire support, Blue Berry delivers high-caliber technology talent for virtually any skill set and position.</span></td>
- </tr>
- </table>
- </div>
- <!-- ends content -->
- <!-- footer -->
- <div class="footr">
- <table width="696" height="24" border="0" cellpadding="0" cellspacing="1" class="footrtbl">
- <tr>
- <td height="22" valign="middle" >
- <span class="para">Copyright © 2008. All rights resereved.</span> </td>
- <td width="427" align="left" valign="middle"><span class="para">Site designed and developed by <a href="http://www.indusray.in" target="_blank" class="folnk" >IndusRay Software Services</a></span> </td>
- </tr>
- </table>
- </div>
- <!-- ends footer -->
- </div>
- </body>
- </html>
Expand|Select|Wrap|Line Numbers
- .bdy,
- html {
- margin:0;
- padding:0;
- }
- .bdy {
- min-width:710px;
- background-attachment: scroll;
- background-image:url(imgs/bg_b.gif);
- background-repeat:repeat;
- background-position: left top;
- /*background-color:#0099FF;*/
- }
- #wrap #hedr {
- height: 163px;
- width: 700px;
- background-attachment: scroll;
- background-image: url(imgs/blue1.jpg);
- background-repeat: no-repeat;
- background-position: center top;
- }
- .footr {
- border:#AACCEE solid 1px;
- background:#fff;
- }
- .footr .para{
- font-family: Arial, Helvetica, sans-serif;
- font-size: 11px;
- font-style: normal;
- color:#07519A;
- word-spacing:5px;
- white-space:normal;
- padding-right:3px;
- text-align: justify;
- }
- .footr .folnk {
- font-family: Arial, Helvetica, sans-serif;
- font-size: 12px;
- font-style: normal;
- font-weight: bold;
- color:#07519A;
- text-decoration:none;
- }
- #cntnt {
- border:#AACCEE solid 1px;
- background-color:#fff;
- }
- .bdy #marq {
- position: absolute;
- height: 37px;
- width: 449px;
- left: 305px;
- top: 36px;
- z-index: 10;
- }
- #cntnt .para {
- font-family: Arial, Helvetica, sans-serif;
- font-size: 11px;
- font-style: normal;
- color:#07519A;
- word-spacing:5px;
- white-space:normal;
- line-height:20px;
- padding-right:3px;
- text-align: justify;
- }
- #cntnt .para1 {
- font-family: Arial, Helvetica, sans-serif;
- font-size: 12px;
- font-style: normal;
- font-weight: bold;
- color:#07519A;
- }
- .bdy #wrap #hedr #logo {
- background-attachment: scroll;
- background-image: url(imgs/bluberrylogo1.jpg);
- background-repeat: no-repeat;
- background-position: left top;
- position: absolute;
- height: 130px;
- width: 169px;
- z-index: 300;
- left: 0px;
- top: 68px;
- }
- .menu2 li a.active{
- background:#3C7FAF;
- color:#ffffff;
- }
- .bdy #stsup .para {
- font-family: Arial, Helvetica, sans-serif;
- font-size: 11px;
- font-style: normal;
- color:#07519A;
- word-spacing:3px;
- white-space:normal;
- line-height:20px;
- text-align: justify
- }
- .bdy #hedr #stsup .ltxt {
- color: #999999;
- height: 12px;
- width: 100px;
- vertical-align:top;
- font:Arial, Helvetica, sans-serif;
- font-size:9px;
- font-style:normal;
- }
- .bdy #wrap #hedr #stsup .lbtn {
- font-family: Arial, Helvetica, sans-serif;
- font-size: 9px;
- height: 20px;
- width: 50px;
- }
- .bdy #wrap .marqimg {
- background-attachment: scroll;
- background-image: url(innerpages/imgs/berry.png);
- background-repeat: no-repeat;
- background-position: left top;
- }
- /*#hedr {
- height: 163px;
- width: 700px;
- position: absolute;
- z-index: 2;
- }*/
- .bdy .footrtbl {
- background-color:#EBF3FB;
- }
Expand|Select|Wrap|Line Numbers
- #wrap {
- /* background:#99c;*/
- margin:0 auto;
- width:710px;
- height:600px;
- }
- #cntnt {
- float:left;
- height: 650x;
- width: 695px;
- border:#CCCCCC solid 1px;
- padding-left:3px;
- }
- .footr {
- float:left;
- height: 25px;
- width: 698px;
- border:#CCCCCC solid 1px;
- background-color:#EBF3FB;
- }
- .bdy #cntnt #img1 {
- background-attachment: scroll;
- background-color: #5984AF;
- background-image: url(imgs/coni.jpg);
- background-repeat: no-repeat;
- background-position: left top;
- height: 147px;
- width: 144px;
- left: 679px;
- top: 217px;
- }
- .bdy #stsup {
- position:relative;
- left: 335px;
- width: 323px;
- height:25px;
- top: 135px;
- }
Expand|Select|Wrap|Line Numbers
- #nav {
- width: 695px;
- padding:5px;
- padding-left:0px;
- padding-top:5px;
- padding-right:5px;
- padding-top:5px;
- background-color:#EBF3FB;
- }
- #nav ul{
- margin:0;
- padding:0;
- font-family:Arial, Helvetica, sans-serif;
- font-size:11px;
- font-style:normal;
- background-color:#EBF3FB;
- }
- #nav li{
- display:inline;
- list-style:none;
- margin:0;
- padding: 3px 35px;
- border-left:#AACCEE solid 1px;
- }
- #nav ul li a {
- text-decoration:none;
- text-align:center;
- background:#EBF3FB;
- color:#07519A;
- }
- #nav li a:hover{
- background:#3C7FAF;
- color:#FFFFFF;
- }
- #nav li:hover{
- background:#3C7FAF;
- color:#FFFFFF;
- }
And one thing I also want to set some height to the menu to the menu.
if possible please tell me.
Any suggestions also welcome with pleasure.
Thanks in advance.