Title: css image problem linking to page
Last modified: August 20, 2016

---

# css image problem linking to page

 *  [remcosieb](https://wordpress.org/support/users/remcosieb/)
 * (@remcosieb)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/css-image-problem-linking-to-page/)
 * 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)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/css-image-problem-linking-to-page/#post-3007750)
 * 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](https://wordpress.org/support/users/remcosieb/)
 * (@remcosieb)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/css-image-problem-linking-to-page/#post-3007764)
 * 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;
       }
       ```
   
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/css-image-problem-linking-to-page/#post-3007870)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/css-image-problem-linking-to-page/#post-3007870)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
