• Hi i am trying to make a image in my css link to another page. I just cant get it linking to another page.
    I added a get_permalink in my php but nothing works… I searched all the web but cant find a good solution. There are several treads but nothing that i needed

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can’t link a CSS background image to anything. You can only add a link to the enclosing div or other element.

    Thread Starter remcosieb

    (@remcosieb)

    thanks.
    so what do you recommend to do in my .php file?
    this is the .css

    #sidebar-links {
       float: left; background: url('images/heden.png') no-repeat;
       position: relative;
       background-color: #f2f1e1;
       float: left;
       text-align: left;
       width: 324px;
       height: 405px;
       -webkit-transition: .8s;
           -moz-transition: .8s;
            -ms-transition: .8s;
             -o-transition: .8s;
                transition: .8s;
    }
    #sidebar-links:hover {
       float: left; background: url('images/hedenbw.png') no-repeat;
       position: relative;
       background-color: #f2f1e1;
       float: left;
       text-align: left;
       width: 324px;
       height: 405px;
    }

    That’s CSS – not PHP.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘css image problem linking to page’ is closed to new replies.