текст text текст text текст text текст text текст text текст text текст text" /> текст text текст text текст text текст text текст text текст text текст text" /> текст text текст text текст text текст text текст text текст text текст text"/>

details and summary: delete or hide "arrow"

4.2k Views Asked by At

Code:

<details>
        <summary>Що зробити:</summary>
<div class="txtinsummary">
текст text текст text текст text текст text 
текст text текст text текст text текст text 
</div>
</details>

How to remove the "arrow" in googleBrowser?

In the FFox screenshot "arrow" does not exist.

gesko

In Google Browser is present.

webkit

Is it possible to do so as in FFox?

3

There are 3 best solutions below

0
Aliskin On BEST ANSWER

<!DOCTYPE html>
<html lang="ru">

<head>

    <style>

    summary{
    display: inline;
    {

    </style>

</head>

<body>

        <details>

        <summary>

        <div">menu1</div>

        </summary>

        <div>
        link or image or submenu
        </div>

        </details>

<br><br>
!!! I'm not sure that all browsers will correctly accept such code.

<br><br>
I did this on my site.

</body>
</html>

enter image description here

4
Raushan Kumar On

It is done with styling unordered list tag . To do this we can use content property in conjunction with the :before pseudo-element. It is demonstrated in below code:

ul{
  list-style: none;
}

ul li:before {
  content: "\2023 \0020";
}
<html>
 <head>
  <link rel="stylesheet" type="text/css" href="style.css"/>
 </head>
 <body>
   <ul>
    <li style="text-decoration:underline">Topic</li>
   </ul>
  </body>
</html>

{ content: "\2023 \0020"; } /* 2023 is hex code of arrow bullet style */ But Before ,We have to declare ul { list-style:none } to remove default list styling.

1
Alex On

details > summary::-webkit-details-marker { display: none; }

...is the magic spell you are looking for!