How to indent multiple levels of select optgroup with CSS?

后端 未结 4 576
逝去的感伤
逝去的感伤 2020-11-29 06:58

Just trying to indent optgroup blocks by nesting depth really, I\'ve tried a general margin-left rule, nested elements then trying to apply the same rule, tried

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-29 07:34

    It's amazingly simple than styling. The answer came to me afte hours of strugling :)) . The optgroup and option tags are defining strings in read-only mode, actualy. So for you to indent any of the optgroup or option content, you just use simple space in the names or  .

    It's that simple :) !

提交回复
热议问题