I wanted to make an element inside a <details>
tag be visible even if the <details>
tag is not open using CSS styles. I tried using visibility
, display
, position
, modifying the <details>
tag height, etc. but nothing worked.
In this example I want the second paragraph to be visible even after closing the <details>
tag:
<details>
<summary>Category</summary>
<p>A paragraph</p>
<p> An another paragraph</p>
</details>
How could I achieve this? Is this possible to do without manipulating the DOM structure?