Simple CSS Trick for Column Spacing in Elementor and Other Page Builders

Have you ever noticed that when you are using a page builder, the ends of paragraphs often add extra space?

Have you ever noticed that when you are using a page builder, the ends of paragraphs often add extra space? This extra space ends up changing how your content sits in the column, messing up middle vertical alignment, or creating too large a gap between content.

Here is a little CSS to help.

				
					p:last-child {
margin-bottom: 0px;
}
				
			

Add this to your Customizer > Additional CSS or put it in your theme CSS before you start building to eliminate this gap. 

Here is a quick explanation of what is going on here if you aren’t familiar with CSS. We need to remove the gap at the end of a paragraph, but if we set the margin to 0px on all paragraph elements, we will have no paragraph breaks! That will be worse than having a phantom space. 

So we are using a selector type called pseudo, which can target just one tag location amongst many. In this case, we are saying to the web browser to remove the bottom margin only when it is the last paragraph tag in an area. 

Hopefully, this short lesson will help you tame the phantom spacing when mixing themes with Elementor and other page builders. 

Let me know if it works or if you have trouble here: Get Started

Free Worksheet

Before you talk to any agency, answer these 5 questions.

Most website projects go sideways because the foundational thinking never happened. This free worksheet surfaces what you actually need to know — before a dollar is spent.

Never Miss a Post

Get marketing insights and business strategy delivered to your inbox.

Related Reading

Share this article
LinkedIn
Threads
Facebook
X
Email
A man in a blazer and light blue shirt smiles at the camera, standing in front of an abstract watercolor background with beige and blue tones.

Written by Joel Miller

Joel is one half of The Sky Floor’s leap-day twin founding duo. He writes about marketing strategy, business operations, and the lessons learned from 15+ years of building digital partnerships.

KEEP READING

More from Our Ideas

Is a mentor a coach or a dictator? We briefly explore two leadership styles in mentorship.
5 Ways to Refresh Your Website
We can't all afford to get a brand new website every few years. Here are five easy ways for you to refresh your website.

Thinking about your digital strategy?

If this resonated with you and you’re wondering how to apply these principles to your own organization, let’s talk.