I am facing an issue while using MVC razor code to create a website logo and adjusting the image scaling for resizing the website. Even after trying image = max-width:100%
and height:auto
, the resizing is not working as expected!
Below is the code snippet I am working with:
<div class="float-left">
<p class="site-title">@Html.ActionLink(" ", "Home", "Home", null, new {@class = "crown_logo"})</p>
</div>
a.crown_logo {
display:block;
width:284px;
height:87px;
background-image :url("../GUI/Images/rsz_crown_2.png");
text-indent: -9999px; /* hides the link text */
}