Hi @COSE_PRO and welcome to the community
That’s not sooo ugly so far.
I would increase the font-size
of html
to 16px
to make it bigger. It would also be better to have different font sizes for h1
and h2
.
Below I have some code that you could use instead of the .toto
classes. You will also need to change
nav {
float: left;
width: 10%;
}
back to
nav {
float: left;
width: 20%;
}
I hope that gives you some ideas what’s possible. Try to find out what each of the following lines do. This will improve your understanding of the code:
nav ul {
padding-left: 0;
margin-top: 0.8rem;
}
nav li {
list-style-type: none;
margin-bottom: 2rem;
}
nav li a {
text-decoration: none;
display: inline-block;
width: 100%;
line-height: 3;
text-align: center;
font-size: 2.5rem;
border: 1px solid #a66;
}
nav li a:focus, nav li a:hover {
color: white;
background: #a66;
}
nav li a:active {
color: white;
background: black;
}
I hope that helps. Feel free to come back whenever you want, if you have more questions.
Have a nice day,
Michael