WordPress Elementor Page Builder

  • Post author:
  • Post category:WordPress
  • Post comments:0 Comments
  • Post last modified:June 10, 2024
  • Reading time:2 mins read

Removing Default Bottom Margins from Elementor Paragraphs

Elementor’s paragraph elements come with a default bottom margin, which often results in excessive spacing between designed elements on the page. To remove this default margin, add the following code to your theme’s stylesheet or the custom code section in Elementor Pro.

					.elementor-text-editor p:last-child, .textwidget p:last-child { margin-bottom:0px;}

Customizing Elementor Page Breaks for Different Devices

To tailor your Elementor designs for specific devices like desktops, tablets, and mobiles, use the following CSS selectors. These allow you to apply custom styles depending on the device mode, ensuring a seamless and responsive design across all platforms.


Here are some examples:

For Mobile Devices:

					body[data-elementor-device-mode=mobile] .elementor-widget-heading {
    font-size: 16px;
    text-align: center;

body[data-elementor-device-mode=mobile] .elementor-section {
    padding: 10px;

For Tablets:

					body[data-elementor-device-mode=tablet] .elementor-widget-heading {
    font-size: 20px;
    text-align: left;

body[data-elementor-device-mode=tablet] .elementor-section {
    padding: 20px;

For Desktops:

					body[data-elementor-device-mode=desktop] .elementor-widget-heading {
    font-size: 24px;
    text-align: left;

body[data-elementor-device-mode=desktop] .elementor-section {
    padding: 30px;

By incorporating these CSS selectors into your stylesheet, you can fine-tune your Elementor designs to look perfect on any device, providing a better user experience across mobile, tablet, and desktop views.

Leave a Reply