Miten luodaan: Kiinteä alatunniste

Opi, miten luot kiinteän tai liimattoman alatunnisteen CSS:llä.

Kokeile itse

Miten luodaan kiinteä alatunniste

<style>
.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: red;
  color: white;
  text-align: center;
}
</style>
<div class="footer">
  <p>Footer</p>
</div>

Kokeile itse

Aiheeseen liittyvät sivut

Oppitunnit:CSS sijoittelu