How to vertically align
's arrow with 's content

前端 未结 2 1784
名媛妹妹
名媛妹妹 2021-01-21 02:24

I am trying to vertically align the arrow that comes with the

element. As you can see in the demo below two things bother me:

  1. the second line of

2条回答
  •  粉色の甜心
    2021-01-21 03:02

    You can also rely on flexbox and keep the default behavior:

    summary {
      font-size: 30px;
      display: flex;
      align-items:center;
    }
    summary > div {
      width:100%;
    }
    Show more, you can click here on the summary's label to fold down the hidden menu
    Nothing to see here.

提交回复
热议问题