Problem with excessive Bottom Margin in Drop-down Filters

Posted in: Newspaper
Post count: 60

Hi,

I have had to add the following to the Theme Custom CSS area…

.td-page-content p {
margin-bottom: 0;
}

I have done this so as to override a margin-bottom setting of 26px that is being set in the Theme Style.CSS file (see the following extract from it).

.td-page-content p,
.td-post-content p,
.wpb_text_column p,
.td_block_text_with_title p,
.woocommerce #tab-description p,
.mce-content-body p,
.td-page-content li,
.td-post-content li,
.wpb_text_column li,
.td_block_text_with_title li,
.woocommerce #tab-description li,
.mce-content-body li {
font-size: 15px;
line-height: 26px;
}
.td-page-content p,
.td-post-content p,
.wpb_text_column p,
.td_block_text_with_title p,
.woocommerce #tab-description p,
.mce-content-body p {
margin-bottom: 26px;
}

My question is what is the reason for having it set as I cannot see a reason for it. With it set it makes the Drop-Down Filters that I have configured in the WP-EventON plugin display incorrectly.

Please let me know the purpose of the margin setting so that I can access it as I cannot see any detrimental effect so far.

Regards

Fergus Walsh
The Irish Place

Post count: 20688

Hi,

Each paragraph (p tag) will have a margin bottom. The theme uses a value of 26px
https://www.screencast.com/t/NYhsRZKH8N
Default WordPress adds a 4.5em margin between paragraphs
https://www.screencast.com/t/pNga3A77jVWm

You could remove this margin if it you don’t require a margin between paragraphs, use the code you mention.
Without and with code – https://www.screencast.com/t/TLQlxLmlk
Or maybe create a code to affect only the paragraphs you want if possible, not all of them.

Thanks

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.