How to Add a Dotted Underline Beneath HTML Text

后端 未结 9 1540
挽巷
挽巷 2020-12-23 19:54

How do you underline html text so that the line beneath the text is dotted rather than the standard underline? Preferably, I would like to do this without using a separate C

9条回答
  •  眼角桃花
    2020-12-23 20:52

    Reformatted the answer by @epascarello:

    u.dotted {
      border-bottom: 1px dashed #999;
      text-decoration: none;
    }
    
    I like cheese

提交回复
热议问题