ASP.NET MVC Html.ActionLink CSS Background Image -


I am trying to set an image on a HTML.ActionLink by adding a CSS class for a link (A) Background image to display the link as an image. It works very well in all browsers but IE6 and IE7 I have to work in these browsers, but I do not understand it. Any ideas ???

  a.edit {background-image: url ("../images / buttons / edit"); Background-position: top left; Repeat Background: No Repetition; Width: 49px; Height: 22px; Display: Inline-table; Text-decoration: none; Explicit: none; } A: hover.edit {background-image: url ("../ Images / Buttons / EditingOn Pages"); Background-position: top left; Repeat Background: No Repetition; }  

and edit the CSS class

  & lt;% = Ajax.ActionLink ("", "EditClaim", "Driver", with new Link {ClaimId = item.Id}, New AjaxOptions {HttpMethod = "GET", UpdateTargetId = "claim", OnSuccess = "showAddClaim", OnComplete = "updateClaim"}, new {@class = "edit"})% & gt ;  

I am very grateful, if someone can help me solve this. I have spent many years trying to solve this one!

thanks

some thoughts ..

what category Does the name change? To see this work see this by adding a limit to the new class or the other style. Adding the boundary really works, so you can make this border similar to the background color (preferably in a conditional stylesheet)

Then thinking about the display: Inline-table <...

/ html>

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -