Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

ASP.net Style affects all links

Hi

In my ASP.net project I have the following markup. It was intended to be used only for my horizontal menu
but affects every link on the website. Is there a way to get around this? Thanks

<style>
  ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

li {
    float: left;
}

a:link, a:visited {
    display: block;
    width: 120px;
    font-weight: bold;
    color:white;
    background: linear-gradient(to bottom, lightskyblue,navy);
    text-align: center;
    padding: 10px;
    text-decoration: none;
    text-transform: uppercase;
    font-family:'Arial Rounded MT'
}

a:hover, a:active {
    background: linear-gradient(to bottom, lightskyblue,black);
    text-align: center;
}
#grad1  {
                color:blue;
                background: linear-gradient(to bottom, lightskyblue,navy);
                padding: 20px
           }
#grad2  {
                color:blue;
                background: linear-gradient(to bottom, lightskyblue,navy);
           }
</style>
ASKER CERTIFIED SOLUTION
Avatar of Kyle Abrahams, PMP
Kyle Abrahams, PMP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Murray Brown

ASKER

Thanks