Why 2nd block display incorrect? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 4
20th Jan 2019, 6:58 AM
Roman Pervutinskiy
Roman Pervutinskiy - avatar
2 Respostas
+ 5
The first header has an id of header. The second header has an id of normal. In the CSS, it selects #header (which gets the element with an id of header, so only the first h1 element) and applies the styling to only that. There is no #normal, so the second h1 is left normal. To select both, replace #header and replace with ā€œh1ā€ (which will select all h1 elements) or #header, #normal (which will select both elements individually).
20th Jan 2019, 7:04 AM
Rowsej
Rowsej - avatar
+ 3
šŸ‘šŸ˜€ I'm too sorry, my mistake... šŸ˜…
20th Jan 2019, 7:07 AM
Roman Pervutinskiy
Roman Pervutinskiy - avatar