• Resolved drdesidran

    (@drdesidran)


    I can’t italicize the text in my captions. I had it before and now it’s disappeared. Here’s the code:

    .wp-caption .wp-caption-text,
    .gallery-caption,
    .entry-caption {
    border-top: 1px solid #080808;
    border-bottom: 1px solid #080808; !important
    font-style: italic; !important
    font-size: 16px;
    	text-align: center; !important
    	line-height: 1; !important
    	color: #757575;
    background-color: #f3f3f3; !important
    border-top: 1px solid #080808; !important
    
    }

    What am I doing wrong? And what is the easy way to debug problems like this? Also, my previous problem was that my changes were not being displayed (even after pressing ‘refresh’). Is there a solution for that?

    My site is: http://general-staff.com/

    • This topic was modified 9 years, 6 months ago by drdesidran.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You should remove your “important” declarations, they’re not only bad practice but they’re not in the right place.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    That’s the case somewhere else in your stylesheet as well. Remove the important declarations and if there’s still an issue then we can attempt to debug it.

    Thread Starter drdesidran

    (@drdesidran)

    Well, that solved the problem! I thought I HAD to use !important to force execution of a line. Thanks!

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

The topic ‘Caption type not itallic’ is closed to new replies.