Title: overriding inline CSS
Last modified: November 17, 2016

---

# overriding inline CSS

 *  Resolved [webmacher](https://wordpress.org/support/users/webmacher/)
 * (@webmacher)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/overriding-inline-css/)
 * Hi,
    I’m trying to change the line height on captions in the content-slider gallery.
   It seems like the line-height is automatically set to be the same as the font
   size. I would like to change this.
 * Example: [http://www.virtualdentalmuseum.org/exhibits/different-strokes-different-folks-history-toothbrush/3/](http://www.virtualdentalmuseum.org/exhibits/different-strokes-different-folks-history-toothbrush/3/)
 * I tried targetting
 * html body.page div[ID*=’ main-slider_’] .slider-content-wrapper .right-block 
   div.description
 * but it didn’t work. Advice?

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

 *  [support-huge-it](https://wordpress.org/support/users/support-huge-it/)
 * (@support-huge-it)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/overriding-inline-css/#post-8451824)
 * Hi [@webmacher](https://wordpress.org/support/users/webmacher/)
 * Please try the following
    body #main-slider_8 .slider-content-wrapper .right-
   block .title { line-height: 50px !important; }
 *  Thread Starter [webmacher](https://wordpress.org/support/users/webmacher/)
 * (@webmacher)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/overriding-inline-css/#post-8454711)
 * Hi,
    I know I can do that – the issue is that I have multiple galleries and I
   don’t want to have to create separate code for each one of them. Currently, your
   code targets individual IDs rather than general classes. While it’s nice to be
   able to target individual galleries if I should need to, it would be far more
   valuable to be able to make style changes to all galleries with fewer lines of
   CSS.
 * Help please? I don’t want to edit the plugin code itself if I don’t have to.
 *  [support-huge-it](https://wordpress.org/support/users/support-huge-it/)
 * (@support-huge-it)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/overriding-inline-css/#post-8456910)
 * Dear [@webmacher](https://wordpress.org/support/users/webmacher/) we have provided
   with a code only for that page.
 * If you want for all galleries then here is the code:
    \templates\front-end\view\
   content-slider\content-slider-view.css.php
 * Add the following line [http://prntscr.com/d95x3r](http://prntscr.com/d95x3r)
 * Please inform us if this helps you to resolve the issue
 * Thank you

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

The topic ‘overriding inline CSS’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gallery-images_f0b24c.svg)
 * [Image Gallery - Responsive Photo Gallery](https://wordpress.org/plugins/gallery-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gallery-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gallery-images/)
 * [Active Topics](https://wordpress.org/support/plugin/gallery-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gallery-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gallery-images/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [support-huge-it](https://wordpress.org/support/users/support-huge-it/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/overriding-inline-css/#post-8456910)
 * Status: resolved