The code shown below does not work because there is no "class" attribute in the Imagebutton user control.
Quote:
|
<asp:ImageButton id="img2" runat="server" class="borderit"></asp:ImageButton>
|
However, there is one attribute called "cssClass" which i think is similar so i did this:
Quote:
|
<asp:ImageButton id="img2" runat="server" cssClass="borderit"></asp:ImageButton>
|
Unfortunately, it does not work at all. I also followed the <style> that you have given me.
Quote:
<style type="text/css" media="screen">
.borderit:hover {
border: solid 1px red }
</style>
|
Btw, the reason why i dont have a head or body is because i am creating a custom user control which is the .ascx file. This is not a .aspx file where <form>, <head>, <body>, etc tags cannot be used. If you go and try it yourself, you will not be able to add such tags.
Anyway, thank you for your response and i hope you can continue to help me out with this problem. Thanks
p.s. I added the <HTML></HTML> tags accidentally, actually i wanted to use .
|