Why 2nd block display incorrect? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4
20th Jan 2019, 6:58 AM
Roman Pervutinskiy
Roman Pervutinskiy - avatar
2 Answers
+ 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