Here is the style: .LinkButton { background:url(“imagePath/imageFile.gif”) top left no-repeat; display:block; /* Image will not show up without this line width:32px; /* change to the actual image width */ height: 32px; /* change to the actual image height */ } How to use it? Define the LinkButton as follows: <asp:LinkButton ID=”LinkButton1″ runat=”server CssClass=”LinkButton”></asp:LinkButton> To add a hover effect, for example, changing the background image when hovering the mouse over the LinkButton. […]
HTML & CSS
One of our applications started giving an error this morning like this: The remote server returned an error: (503) Server Unavailable. The stack trace shows that the application was trying to parse a template in XML format and encountered an error on the DTD file. When the line of DOCTYPE was commented out, the error went away and the application came back running. Here is the DOCTYPE of the application: <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML […]
Have you ever had this problem that you need to type some special symbols in Visual Studio .NET text editor? Such as ©, ®, ±, à, À, and the list goes on. Of course, if you are working on an ASPX file, you can always use the HTML editor and type in their HTML names or HTML numbers, and Visual Studio .NET will automatically convert them to those special symbols (VS 2005 does a much […]
One of the important tasks when working with Cascade Style Sheet is picking a good color for an item. I always like to assign a color value with the hexadecimal form, but the problem is I can’t memorize those hexadecimal values. Visual Studio .NET IDE has very good intellisense support for creating/editing CSS files, but it only support named colors. What I need is some color palette on-line like this to help my pick a […]
I believe adding the following code in the <head> section will tell search engines to skip your page: <meta name=”robots” content=”noindex, nofollow”>