APL/HTML/TP04/Exercice1.css
2022-01-18 12:52:55 +01:00

96 lines
1.4 KiB
CSS

body {
display: grid;
grid-template-columns: 2fr 1fr;
padding: 0% 15% 0% 15%;
height: 100vh;
margin: 0%;
}
p {
font-family: Arial, Helvetica, sans-serif;
}
a {
font-family: Arial, Helvetica, sans-serif;
color: #08c;
}
h2 {
font-family: Arial, Helvetica, sans-serif;
text-align: center;
}
header {
grid-column: 1 / span 2;
}
nav {
text-align: center;
}
.accueil {
float: right;
}
section {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: .1fr 1fr 1fr;
}
.informaticiens {
grid-column: 1 / span 2;
}
nav>ul>li {
display: inline-block;
padding: 10px;
text-align: center;
}
article {
display: inline-block;
display: grid;
grid-template-columns: 1fr 2fr;
grid-template-rows: 1fr 1fr 1fr;
margin: auto;
}
article>h3 {
font-family: Arial, Helvetica, sans-serif;
}
article>img {
width: 160px;
grid-row: 1 / span 3;
grid-column: 2;
border-style: solid;
border-width: 5px 15px 20px 5px;
border-color: #EFEFEF;
box-shadow: 10px 8px 5px #555;
margin: auto;
}
nav>ul>li>a {
text-decoration: dashed;
text-decoration-line: underline;
}
aside>p>em {
font-weight: bold;
}
aside>p>em:nth-child(1) {
margin-right: 15px;
color: #08c;
}
footer {
grid-column: 1 / span 2;
width: 100%;
margin: auto;
}
footer>p {
display: inline-block;
}