Home > Software design >  How to make an exception in CSS
How to make an exception in CSS

Time:07-27

This is my very first experience in web development and I need help with CSS. I used an unordered list for 2 links that forward users to the web courses. Also, I used links to let users open the other page on my website. Today I added some external CSS to it. I tried to make link buttons change their colors when users mouses over them. I've succeeded with styling links for courses but the style of the "page links" doesn't work the same. It seems to me that the "h3 CSS rule" (let's call it like that) doesn't let the "links CSS rule" apply to "Contact me" and "Main page". So, the links for courses change their colors but page links don't. How can I fix it? Thank you.

The whole HTML code (main page):

<head>
  <meta charset="utf-8">
  <title>Anton's Personal Site</title>
  <link rel="stylesheet" href="css/styles.css">
</head>

<body>
  <table cellspacing="20">
    <td><img src="Images/1.jpg" alt="Anton profile picture" style="width:200px;height:350px;"></td>
    <td>
      <h1>Anton Blahist</h1>
      <p><em>Web Development <strong>Beginner</strong></em></p>
      <p>23 years old, like computer games, creating music and writing songs</p>
    </td>
  </table>
  <h3>Education</h3>
  <ul>
    <li><a href="some courses">some courses</a></li><br>
    <li><a href="some courses">some courses</a></li>
  </ul>
  <h3>Hobbies</h3>
  <ol>
    <li>Computer gaming</li>
    <li>Song writting</li>
    <li>Music creating with FL Studio</li>
    <li>Sports exercises</li>
  </ol>
  <h3>Skills</h3>
  <table>
    <tr>
      <td>
        <table>
          <tr>
            <td>English</td>
            <td>           
  • Related