Can you add line breaks to the :after pseudo element?

前端 未结 3 1572
一整个雨季
一整个雨季 2020-12-05 16:42

I want to append a
to a particular class. Using the :after pseudo class simply displays
as text.

Is there a way t

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-05 17:42

    It gets worse - the :after class doesn't even work in IE6 (and probably some other browsers too).

    I think what you really want here is a margin on the bottom of the element, to provide spacing.

    Simply

    .myElement {
        margin-bottom: 1em;
    }
    

提交回复
热议问题