CSS inline-block won't show up in a browser as link

时间:2016-02-12 19:45:31

标签: html css

I'm trying to style my link with black background, using the code below:

a#link-1: link{
    background: black;
    padding: 20px;
}

However; it won't show up on the browser!

Please, check it out. This is the entire code

1 个答案:

答案 0 :(得分:0)

Is that the effect you want ?

https://jsfiddle.net/ehc5skbv/2/

a#link-1 {
    background: #333;
    padding: 10px;
       
}