How to change spacing between radio button and its text?

前端 未结 3 1238
陌清茗
陌清茗 2020-12-15 03:17

I have the following HTML:

3条回答
  •  醉梦人生
    2020-12-15 03:39

    Many HTML elements have a default margin setting. You can override this and set it to 0. In your case, you want to reset margin-right on the radio button:

    1+
    

    You probably want to add it to your stylesheet so that it applies to all radio buttons:

    input[type="radio"] {
      margin-right: 0;
    }
    

提交回复
热议问题