+ 1

How to override * selector in CSS?

I have to set a background image for the webpage but it shouldn't be applied inside/replace "section"'s background. I have specific section properties but section background color is overrided by background image of *. Update: I set the background image of section to none but it doesn't fully work out. The section text still has the image in immediate background though the surrounding section area is fine. Title is now misleading https://code.sololearn.com/WCsX2250fW9K/?ref=app

18th Jul 2020, 1:10 PM
Jagrit Vats
Jagrit Vats - avatar
4 ответов
+ 1
Solved, used * attributes in body tag, removed *
18th Jul 2020, 4:30 PM
Jagrit Vats
Jagrit Vats - avatar
+ 1
Ćheyat I already have section specific colors
18th Jul 2020, 1:21 PM
Jagrit Vats
Jagrit Vats - avatar
+ 1
I now set background image of section to none but it doesn't fully work out.
18th Jul 2020, 1:22 PM
Jagrit Vats
Jagrit Vats - avatar
0
section{ background-color: #000; }
18th Jul 2020, 1:15 PM
Saphal Poudyal
Saphal Poudyal - avatar