CSS – HTML navigation tag does not cover the entire peak

  • Home / Blog / CSS – HTML…

CSS – HTML navigation tag does not cover the entire peak

body {
  background: rgb(240, 240, 240);
  margin: 0;
}

nav {
  font-family: sans-serif;
  background: darkgrey;
  padding-left: 20px;
}

#todo {
  font-size: 150%;
  color: rgba(255, 0, 0, 0.411);
}

#list {
  color: grey;
  font-size: 120%;
}
<nav>
  <h1>
    <span id='todo'>TODO</span><span id='list'>List</span>
  </h1>
</nav>

Write a Comment

Your email address will not be published. Required fields are marked *

x