Using style in header


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="">
<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">

 <!--The classes contained in the style tags are purely for the horizontal navigation bar-->
  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  {
                background: linear-gradient(to bottom, lightskyblue,navy);


       <!--nav element must live inside the 'body' element-->
      <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>
    <form id="form1" runat="server">
   <div id="grad1">

        <!--The ContentPlaceHolder area is used by the other pages to merge their content with the master page-->
        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

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
Dave BaldwinFixer of ProblemsCommented:
You're welcome, thanks for the points.
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

From novice to tech pro — start learning today.