2019-2020/Formations/NSI/Bloc1/WEB/heros/style.css

43 lines
518 B
CSS
Raw Normal View History

2020-05-05 07:53:14 +00:00
body
{
margin: 0px;
margin: auto;
max-width: 50rem;
overflow: hidden;
}
section
{
height: 100vh;
max-width: 50rem;
}
p
{
text-align: center;
margin-top: 50vh; /* poussé de la moitié de hauteur de viewport */
}
nav
{
text-align: center;
}
a
{
text-decoration: none;
padding: 5px;
margin: 5px;
}
li:nth-child(2n+1) > a
{
background-color: lightgreen;
border-radius: 60px;
}
li:nth-child(2n) > a
{
background-color: lightblue;
border-radius: 60px;
}