Site logo

Archived topic

After inserting a hook I have a distance to the footer.

6 replies · Started by Samuel on May 2, 2019

Viewing posts 1–7 of 7

Hi,

please check this: http://prntscr.com/nji2an

How do I get the distance away? As I understand it, this is a distance that creates a p-element. I can't turn it off, otherwise it will affect my text in the body. What recommendation would you make? I copied the following code from a forum...

<?php echo do_shortcode(‘[image-credits]’) ?>

Hi there,

you can remove the bottom margin with this CSS:

.image-credits {
    margin-bottom: 0;
}

Genius thanks!

Last question: if I now want to have a maximum width of 1100 pixels for this Element - how do I do that best? So this element is not wider than the widget area: http://prntscr.com/njicsv

Is this a good solution?

<div class="bb-image-credits-container">
	<div class="bb-image-credits-widget">
		<?php echo do_shortcode('[image-credits]') ?>
	</div>
</div>
.bb-image-credits-widget {max-width:1100px; margin: 0 auto;}
.bb-image-credits-container {max-width:100%; background-color:#877f7a;}

Looks good to me :)

Thank you!

You're welcome

This archived topic is closed to new replies.