ASP.net Using style in header

Hi

In the following master page I have a class called "grad1" that I use in the bosy.
How do I use it in the header?


<%@ Master Language="VB" AutoEventWireup="false" CodeBehind="Site1.master.vb" Inherits="OES5.Site1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta charset="UTF-8" />
    <title>Microsoft Excel Spreadsheet Consulting | Excel Cloud Accounting | Office 365 Sharepoint</title>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>

 <!--The classes contained in the style tags are purely for the horizontal navigation bar-->
<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: #FFFFFF;
    background-color: #98bf21;
    text-align: center;
    padding: 6px;
    text-decoration: none;
    text-transform: uppercase;
}

a:hover, a:active {
    background-color: #7A991A;
}
#grad1  {
                color:blue;
                background: linear-gradient(to bottom, lightskyblue,navy);
           }
</style>
</head>


<body>

   
       <!--nav element must live inside the 'body' element-->
  <nav>
    <ul>
      <li><a href="Default.aspx" class="myHoverButton">Home</a></li>
      <li><a href="Webform1.aspx" class="myHoverButton">Page 1</a></li>
      <li><a href="Webform2.aspx" class="myHoverButton">Page 2</a></li>
      <li><a href="Webform1.aspx" class="myHoverButton">Page 3</a></li>
      <li><a href="Webform2.aspx" class="myHoverButton">Page 4</a></li>
      <li><a href="Webform1.aspx" class="myHoverButton">Page 5</a></li>
      <li><a href="Webform2.aspx" class="myHoverButton">Page 6</a></li>
      <li><a href="Webform1.aspx" class="myHoverButton">Page 7</a></li>
      <li><a href="Webform2.aspx" class="myHoverButton">Page 8</a></li>
    </ul>
  </nav>
    <form id="form1" runat="server">
   <div id="grad1">
    Hello

    </div>
    <div>
        <!--The ContentPlaceHolder area is used by the other pages to merge their content with the master page-->
        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
       
        </asp:ContentPlaceHolder>
    </div>
    </form>
</body>
</html>
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
How do I use it in the header?
Doesn't make sense.  You put it in the header style section to be used by elements like 'div's in the body.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks, I realised after posting the question that it made no sense
0
Dave BaldwinFixer of ProblemsCommented:
You're welcome, thanks for the points.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

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.