Hyperlinking an image using CSS

后端 未结 10 1006
清酒与你
清酒与你 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:05

    Try this - use an H1 as the seat of your graphic instead. Saved my butt time and time again:

    CSS-Tricks

    h1.technique-six { width: 350px; padding: 75px 0 0 0; height: 0; background: url("images/header-image.jpg") no-repeat; overflow: hidden; }

    Accessible, and also solid across browsers IE6 and > . You could also link the H1.

提交回复
热议问题