Jump to content
Stef's Coding Community
Slav

Slav

Recommended Posts

Hi there! I am in CSS chapter 5 Styling links and list and I have a problem with nav tag. When I place mouse on link nothing happen. Its my code:

html

<nav id="navigation">
    <h2>The Main navigation</h2>
    <ul>
        <li><a href="https://www.google.com/">Home</a></li>
        <li><a href="https://www.google.com/">Store</a></li>
        <li><a href="https://www.google.com/">Blog</a></li>
        <li><a href="https://www.google.com/">Contact us</a></li>
    </ul>
</nav><!--closing navigation-->

and css

 /* unvisited links*/
      a:link {
         color: yellow;
         text-decoration: none;
      }
      a:visited: {
          color: red;
          background: red;
      }
      /*mouse over link*/
     a:hover {
         color: blue;
         text-decoration: underline;
         font-family: arial;
         font-size: 30px;
      }
      /*selected link*/
      a:active: {
        color: green;
        font-weight: bold;
      }
      
      #centerDoc a:link {
          color: green;
          text-decoration: underline;
      }
      #centerDoc a:hover {
          color: blue;
      }
      

Thanks

 

Share this post


Link to post
Share on other sites

It looks right - any chance your actual page is online and you can link to it so we can see the whole thing?

Share this post


Link to post
Share on other sites

Also, is the hover the only thing not working?

 

Share this post


Link to post
Share on other sites

hi,

Many thanks for replay. I mange to fix this by myself it was about a margin or border overlap my navigation section.

thanks :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...