Hyperlinking an image using CSS

后端 未结 10 989
清酒与你
清酒与你 2020-12-11 05:39

I know this is probably the dumbest question ever, however I am a total beginner when it comes to CSS; how do you hyperlink an image on a webpage using an image which is sou

10条回答
  •  抹茶落季
    2020-12-11 06:11

    sorry to spoil your fun ladies and gentlemen, it is possible.

    Write in your header: [link](http://"link here")
    
    then in your css:
    
    #header a[href="https://link here"] {
              display: inline-block;
              width: 75px;
              height: 75px;
              font-size: 0;
            }
            .side .md a[href="link here"] {
              background: url(%%picture here%%) no-repeat;
            }
    

提交回复
热议问题