Centralize text and change JSP CSS color

Asked

Viewed 357 times

0

I would like to put my menu items in the center and change them in color, in case I put a white color but am not getting

inserir a descrição da imagem aqui

 #menu{
            background-color:#6495ED;


        }
        .conteudo{
              display:inline;
            text-align: center;  
            padding: 10px;
             color:white;

        }
         <nav id="menu">

        <div class="conteudo"> <a href="index.jsp">Pagina Principal</a>
       </div>
        <div class="conteudo"> <a href="produtos.jsp">Produtos</a></div>
        <div class="conteudo"><a href="contato.jsp">Contato</a></div>
     </nav>

1 answer

1


 #menu{
          background-color:#6495ED;
          text-align: center;
          padding: 10px !important;
        }
        .conteudo{
            display: inline;
        }
        a {
          padding: 10px !important;
          text-decoration: none;
          color: white;
        }
<nav id="menu">
        <div class="conteudo"> <a href="index.jsp">Pagina Principal</a>
       </div>
        <div class="conteudo"> <a href="produtos.jsp">Produtos</a></div>
        <div class="conteudo"><a href="contato.jsp">Contato</a></div>
     </nav>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.