Margin-top not working for

and tag?

前端 未结 6 1115
小蘑菇
小蘑菇 2021-02-01 02:57

I have been trying to implement margin-top for a link button but it doesn\'t work at all. I have also tried inline styles for both \'p\' and \'a\' tag.

There are 3 li el

6条回答
  •  抹茶落季
    2021-02-01 03:23

    Try this:

    #services ul li a{
        background-color: #4972ff;
        color: #fff;
        border-bottom: 3px solid #779bff;
        border-radius: 5px;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        padding: 8px;
        position: relative;
        top: 10px;
    }
    

提交回复
热议问题