adding an introduction header with css

This commit is contained in:
manetta 2020-09-18 15:51:00 +02:00
parent 1bc71091d6
commit 2f64328f46

View File

@ -23,7 +23,7 @@ header#banner{
text-decoration: none; text-decoration: none;
} }
nav#menu{ nav#menu{
width: calc(100% + 20em); width: calc(100% + 18em);
text-align: center; text-align: center;
margin:0 0 0 -10em; margin:0 0 0 -10em;
} }
@ -62,6 +62,13 @@ article{
background-color: beige; background-color: beige;
padding:2em 3em; padding:2em 3em;
} }
article:first-of-type:before{
content: "Introduction";
display: block;
margin:0 auto;
position: relative;
font-style: italic;
}
/* big pink boxes for the section titles */ /* big pink boxes for the section titles */
h1.category{ h1.category{