• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 351
  • Last Modified:

ASP.NET Button won't style in IE6/7

I have several buttons in my ASP.NET page that I am styling using a CSS.
<asp:Button id="Button2" runat="server" Text="Button" CssClass="RegularButton"></asp:Button>

.RegularButton {

This works fine on my development laptop (IE8) but just displays a standard button with no style in IE6 and IE7. I am using it in a .NET 1.1 website but I don't think this should make any difference should it?
1 Solution
MattWilkinsonAuthor Commented:
I have found the solution - it was in the declaration of the style sheet in the page header - when I dragged this in VS gave me this:
<LINK rel="stylesheet" type="text/css" href="http://localhost/Touchscreens/Styles.css">
But I changed this to the VS2008 default:
<link href="Styles.css" rel="stylesheet" type="text/css" />

and it now works!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now