Level 54
#main > span.promotion {
display: none;
}
if you want to use visibility you should set it as:
visibility: hidden;
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello, I have a div with the "main" class and in this div I have a span with the "promotion" class. My question is: When I use this type in css, that span is not hidden. How should I do otherwise?
#main > .promotion {
visibility:none;
}
Please or to participate in this conversation.