Archived topic
h1 color
4 replies · Started by Antonio on February 21, 2021
I want the h1 to change the background color to yellow and occupy the entire width.
Hi there,
try this CSS:
h1 {
display: block;
background-color: #FFFF00;
padding: 5px;
}
ok. thank you. i would like the h1 to be full width.
display: block ?
display full width?
first I want title h1 full width yellow color
second table of contents
third the content
I have this code
@media (max-width: 768px) {
.site-content {
flex-direction: column-reverse;
}
}
@media (max-width: 768px) {
.main-navigation button.menu-toggle {
margin-left: auto;
margin-right: auto;
}
}
h1 {
display: block;
background-color: #FFFF00;
padding: 5px;
}
Sorry what is the issue now?
Looks like the h1 is full width to me?
https://www.screencast.com/t/yIwaPn7Bu