Home>Support>Media Queries with Page Builder

Media Queries with Page Builder

Hi,

I’ve added a Row with a Row Layout of 2 columns set to the Golden Ratio. I’ve placed a Text widget in each of these two columns in this new Row.

Can I use the Widget Styles > Attributes fields (i.e., the Widget Class and CSS Styles fields) to set up media queries at specific breakpoints. For example, at a specific screen width range I’d like to have the left column be 61.8% and the right column be 38.2%, and at a second specific screen width range I’d like to have the left column switch to 55.8% and the right column switch to 44.2%, as shown in the media queries below:

@media (min-width: 1000px) and (max-width: 1250px) { #panel-44-0-0-0 .panel-widget-style {width:61.8%;}}
@media (min-width: 1000px) and (max-width: 1250px) { #panel-44-0-1-0 .panel-widget-style {width:38.2%;}}

@media (min-width: 960px) and (max-width: 999px) { #panel-44-0-0-0 .panel-widget-style {width:55.8%;}}
@media (min-width: 960px) and (max-width: 999px) { #panel-44-0-1-0 .panel-widget-style {width:44.2%;}}

Thanks in advance for your help.

Alex

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 10 months ago Alex S
    Hi, I Work Here

    Hi Alex,

    Unfortunately, no. The CSS styles field is purely for inline CSS (in other words, you can’t use selectors). Sorry mate. :(

    I would recommend using the widget Class to help with writing the classes (.example vs #panel-44-0-0-0) though.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More