Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
hi to all,
Here for navigation control i used mvcsitemapper.here i finished navigation but i want to set navigation images.

DESCRIPTION:-
For home i want to use some images for home navigation control.Here i used imageurl but no change in navigation.Kindle help how to set here i used so many options but no use.so Help me for this task
Posted

1 solution

You can use Html.ActionLink to navigate and use Css to provide images to link as

<%= Html.ActionLink("Home", "Index", null, new { @class="homeCss" }) %>

C#
.homeCss
{
    background: url(../Images/home.gif) no-repeat top left;
     display: block;
     width: 150px;
     height: 150px;
     
}
 
Share this answer
 

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