Dotted text in css?

后端 未结 7 496
醉话见心
醉话见心 2021-02-01 02:34

Is it possible to make dotted text with css?

I know that the obvious thing would be to use a dotted font, but If I only need to use dotted text sparingly, then having th

7条回答
  •  不思量自难忘°
    2021-02-01 03:21

    To be honest, this answer may sound funny or weird, but am not sure whether its possible with CSS ONLY (As you haven't tagged any other languages), even if its, it would be an overkill to do so, and hence it makes sense in using a dotted font instead of writing too many lines of CSS.

    Even if you rule out IE, you will have only single .woff file which I think is very much normal, as it will increase your http request by one, and surely it won't be over bloated much as you think.

    List of cool dotted fonts can be found over here. Convert the ttf,using Font Squirrel Service.

    Make sure you have permission to do so.


    Demo Fonts used : Dotline

    (Files are hosted on my own server, enabled CORS because the demo failed on Firefox)

    If you are not looking to support crappy IE, only file you will need is woff and that's merely 23kb

提交回复
热议问题