Skip to content

❌ Incomplete Issue: Media Query for Widescreen Breakpoint (1440px) is rendered inversed #33559

Description

@nesadiyajatin

Description

I discovered a responsive CSS bug in Elementor involving the 1440px breakpoint.

Elementor is generating the following CSS for the container:

@media (max-width:1440px) and (min-width:768px) {
   .elementor-30 .elementor-element.elementor-element-7502182 {
       --width: calc(33.33% - 13.33px);
   }
}
@media (min-width:768px) {
   .elementor-30 .elementor-element.elementor-element-7502182 {
       --width: calc(33.33% - 20px);
   }
}

What is the problem?

Elementor uses max-width:1440px instead of min-width:1440px.

As soon as the screen becomes 1441px or larger, the 1440px rule stops working.

Elementor then falls back to the min-width:768px rule, which breaks the layout on large desktops.

Result:

The design appears correct from 768px1440px, but completely wrong on >1440px screens (e.g., laptops, iMacs, 1920px monitors, 4K monitors).

This affects container width, spacing, and overall layout because Elementor uses a CSS variable --width for flexbox container calculations.

This behavior does not match expected responsive logic.

Image Image Image [after-responsive.css](https://github.com/user-attachments/files/23633970/after-responsive.css) [before-responsive.css](https://github.com/user-attachments/files/23633969/before-responsive.css)

Steps to reproduce

  1. In Elementor, create a container-based layout.
  2. Apply responsive width settings for Desktop and Widescreen breakpoints.
  3. Save and inspect the frontend using Chrome DevTools.
  4. Open the generated CSS file under: /wp-content/uploads/elementor/css/post-XX.css
  5. Observe that Elementor outputs:
  • @media (max-width:1440px)
  • instead of @media (min-width:1440px)
  1. View the page at:
  • 1400px (layout looks correct)
  • 1500px / 1600px / 1920px (layout becomes incorrect due to fallback to 768px rule)

messgae.txt

Expected behavior

Elementor should generate min-width:1440px for widescreen (Desktop+) breakpoints.

Correct expected output:

@media (min-width:1440px) {
   .elementor-30 .elementor-element.elementor-element-7502182 {
       --width: calc(33.33% - 13.33px);
   }
}

This ensures larger screens inherit the correct layout instead of reverting to tablet/desktop-flex rules.

  1. Elementor generates max-width instead of min-width.
  2. Wide screen (1441px to 2560px) layouts break.
  3. Container width becomes inconsistent.
  4. Flexbox calculations (based on --width variable) produce incorrect layout.

Elementor System Info

== Server ==
PHP Version: 8.1
Web Server: Apache
Memory Limit: 512M

== WordPress ==
Version: 6.8.3
Theme: my custam Theme

== Elementor ==
Version: 3.33.1
Elementor Pro: No
Container Layout: Enabled
Additional Breakpoints: Enabled

== Browser ==
Chrome latest version
OS: Windows 10

Agreement

  • I confirm I have read and followed all the guidelines and instructions outlined in the Elementor Bug Report form.
  • I agree that my issue may be closed without further action if it doesn't meet all the requirements outlined in the Elementor Bug Report form.

Metadata

Metadata

Assignees

No one assigned

    Labels

    document/assetsReferences any asset (CSS, JS) generated for any document - Posts, Pages, Popups, Templates, etc.element/containerReferences the Flexbox Container element.mod*[Temp.] For internal use only.mod/c*[Temp.] For internal use only.mod/i*[Temp.] For internal use only.site-settings/additional-breakpointsReferences the Additional (custom) Breakpoints feature in the Editor Site Settings.type/layoutIndicates when a topic is related to a component’s Layout.type/responsiveIndicates when a topic is related to Responsive Design, for tablet, mobile, and other screens.type/stylesIndicates when a topic is related to the styles or design of a component.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions