Click here to Skip to main content
15,902,189 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I have a tab menu on my asp.net page and I can't get the menus to display the required images. Any help is much apreciated, my code:
CSS FILE:
.glossymenu{
position: relative;
padding: 0 0 0 34px;
margin: 0 auto 0 auto;
background-image: url(../Images/menub_bg.gif) repeat-x; /*tab background image path*/
height: 46px;
list-style: none;
}
.glossymenu li{
float:left;
}
.glossymenu li a{
float: left;
display: block;
color:#000;
text-decoration: none;
font-family: sans-serif;
font-size: 13px;
font-weight: bold;
padding:0 0 0 16px; /*Padding to accomodate left tab image. Do not change*/
height: 46px;
line-height: 46px;
text-align: center;
cursor: pointer;
}
.glossymenu li a b{
float: left;
display: block;
padding: 0 24px 0 8px; /*Padding of menu items*/
}
.glossymenu li.current a, .glossymenu li a:hover{
color: #fff;
background-image: url(../Images/menub_hover_left.gif) no-repeat; /*left tab image path*/
background-position: left;
}
.glossymenu li.current a b, .glossymenu li a:hover b{
color: #fff;
background-image: url(../Imagesmenub_hover_right.gif) no-repeat right top; /*right tab image path*/
}

ASP.NET PAGE:

<tr align="center">
<td>
<ul id="countrytabs" class="glossymenu">
<li><a href="#" rel="General">General</a></li>
<li><a href="#" rel="Bill">Bill</a></li>
<li><a href="#" rel="Reconsile">Reconsile</a></li>
<li><a href="#" rel="FixedCharges">Fixed Charges</a></li>
</ul>

Thank you in advance.</td></tr>
Posted
Updated 30-Sep-11 5:21am
Comments
Parwej Ahamad 30-Sep-11 11:24am    
It's not able to find the path. So can you post image path with root project? So we will able to figure out.
Post here you page location too.
frostcox 30-Sep-11 11:39am    
Page--

C:\DevelopmentVersion-10.2\ScreenPresentationTier\CarrierProfile.aspx

Image--

C:\Development\Version-10.2\ScreenPresentationTier\Images\menub_bg.gif
Parwej Ahamad 30-Sep-11 11:58am    
Remove ".." from image URL:
/Images/menub_hover_right.gif

Hope so this should work
frostcox 30-Sep-11 12:25pm    
Did that but still not working
Parwej Ahamad 30-Sep-11 12:27pm    
Please make sure folder name and image name is correct. One more thing remove "/" too and then try.

Maybe your path is not right. Are these images on the correct directory? Or did you change their file-names?
 
Share this answer
 
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900