StyleSheets in ASP.NET

Posted on 2005-05-02
Medium Priority
Last Modified: 2010-04-06

I have this stylesheet "StyleSheet1.css". To inform u, i am doing the rest of working in Asp.Net using C#.











I have included this on a .aspx page like

<LINK href="StyleSheet1.css" type="text/css" rel="stylesheet">

Now the problem for about 20 links is that i don't want this stylesheet to take effect since making them bold on hovering over them just shifts other things on the pages. So i don't want this style sheet to take effect for some links(since it doesn't look good). However there are a large no of links that i want stylesheet for. So is there anyother way to go for except for CSSClass Property? Please do explain your answer with code, if possible. Thanks


Question by:theNab
1 Comment
LVL 49

Accepted Solution

Roonaan earned 300 total points
ID: 13907782
You could assign a container <div> object, give it an id/class and add additional css rules:

div#menu a:hover {font-weight:normal;}

Likewise you could assign a class to the <a> tags: <a class="nobold">. You would then add a new rule to the stylesheet:
a.nobold:hover {font-weight:normal;}


Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question