• Resolved woody2016

    (@woody2016)


    Hello
    I have followed the instructions on another post where you explained how to add a graphic in-place of a title, I have the pictures and they display, however I would like to add CSS to set their size in the accordion title. Here is my code:

    /* Repeat this block for each title/icon */
    #car1: {
    background-image: url(“http://localhost/carinfoweb/wp-content/themes/twentythirteen-child /images/car0112.png”);
    }

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter woody2016

    (@woody2016)

    realised there was a typo, there is no : after #car1, it was being used while I experimented!

    Plugin Author philbuchanan

    (@philbuchanan)

    You can use the background-size property to set the size of the background image:

    #car1 {
      background-size: 100px 20px;
    }
    Thread Starter woody2016

    (@woody2016)

    Hello Phil, Excellent fix, proves I need more CSS knowledge!
    Thank you for an excellent plugin, much appreciated..

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

The topic ‘using graphic as title CSS’ is closed to new replies.