Hover without title
-
When using an empty title, the resulting code have the H3 tag and the remaining title space pushes down the description text, vertically miscentering it.
To manitain centering, I suggest this little change in render/hover.php:
<div style="display: table-cell !important;vertical-align: middle !important;"> <?php if ( $title != '' ) { ?> <h3 style="color: <?php echo $title_clr; ?>; background: <?php echo $title_bg; ?>; font-size: <?php echo $title_size; ?>;"> <?php echo $title; ?> </h3> <?php } ?> <p style="color: <?php echo $desc_clr; ?>; font-size: <?php echo $desc_size; ?>;"> <?php echo $desc; ?> </p> </div>
Thanks for your attention and great plugin.
- The topic ‘Hover without title’ is closed to new replies.