Responsive Layout
-
- Experienced User
- Posts: 119
- Joined: Wed May 25, 2016 11:58 am
- First Name: Patti
- Last Name: Shuey
- Company Name: Conestoga Wood Specialties
- Phone: 7174452886
- Address 1: 645 Reading Road
- City: East Earl
- State / Province: Pennsylvania
- Zip / Postal Code: 17519
- Country: United States
- Contact:
Responsive Layout
Is there a way to change the background color on individual sections of the responsive layout?
-
- Experienced User
- Posts: 140
- Joined: Wed Sep 14, 2016 2:58 pm
- First Name: Mark
- Last Name: Walter
- Company Name: Paragon Consulting Services
- Contact:
Re: Responsive Layout
Can you put a standard layout in the section. Set the height and length to 100%. Then set the background of that.
We haven't upgraded to 6 yet, so I can't try this. But, that's how I'd do it in HTML5. I'd place a DIV inside my col.... div, and set the background of that.
We haven't upgraded to 6 yet, so I can't try this. But, that's how I'd do it in HTML5. I'd place a DIV inside my col.... div, and set the background of that.
-
- Experienced User
- Posts: 119
- Joined: Wed May 25, 2016 11:58 am
- First Name: Patti
- Last Name: Shuey
- Company Name: Conestoga Wood Specialties
- Phone: 7174452886
- Address 1: 645 Reading Road
- City: East Earl
- State / Province: Pennsylvania
- Zip / Postal Code: 17519
- Country: United States
- Contact:
Re: Responsive Layout
I was hoping there is a way to do it using the new responsive layout widget without having to add a layout on top of it to get different colors in different sections.
- Megan
- Profound Logic Staff Member
- Posts: 90
- Joined: Mon Sep 11, 2017 12:15 pm
- First Name: Megan
- Last Name: Bond
- Company Name: Profound Logic
- Phone: 5623227473
- State / Province: California
- Zip / Postal Code: 92692
- Country: United States
- Contact:
Re: Responsive Layout
Hello Patti,
This is certainly possible with the responsive layouts! To do this, you'll want to add rules to the 'style rules' property that will color the background of the containers. See the steps below.
Right click the 'style rules' property and click 'Open in Editor...' Example rules to add:
Result:
To see the structure and order of responsive layout, you can use the developer tools of your browser. In Chrome, the tools can be opened with Ctrl + Shift + I. Ctrl + Shift + C can be used to highlight and select the element you want to view in the developers tools.
Using Ctrl + Shift + C to highlight element: Responsive Layout in Developers Tools: div:first-child, the red container: Additional information on CSS Selectors: https://www.w3schools.com/cssref/css_selectors.asp
We hope this helps! If you have any questions or concerns, please let us know and we'll be happy to help!
Thanks,
This is certainly possible with the responsive layouts! To do this, you'll want to add rules to the 'style rules' property that will color the background of the containers. See the steps below.
Right click the 'style rules' property and click 'Open in Editor...' Example rules to add:
Code: Select all
@media screen {
#_id_>.puiresp {
display: grid;
grid-template-rows: auto;
grid-template-columns: repeat(4, 1fr);
grid-column-gap: 3px;
grid-row-gap: 3px;
}
#_id_>.puiresp>div:first-child {
background: red;
}
#_id_>.puiresp>div:nth-child(2) {
background: orange;
}
#_id_>.puiresp>div:nth-child(3) {
background: yellow;
}
#_id_>.puiresp>div:nth-child(4) {
background: green;
}
#_id_>.puiresp>div:nth-child(5) {
background: blue;
}
#_id_>.puiresp {
background: purple;
}
}
Using Ctrl + Shift + C to highlight element: Responsive Layout in Developers Tools: div:first-child, the red container: Additional information on CSS Selectors: https://www.w3schools.com/cssref/css_selectors.asp
We hope this helps! If you have any questions or concerns, please let us know and we'll be happy to help!
Thanks,
-
- Experienced User
- Posts: 119
- Joined: Wed May 25, 2016 11:58 am
- First Name: Patti
- Last Name: Shuey
- Company Name: Conestoga Wood Specialties
- Phone: 7174452886
- Address 1: 645 Reading Road
- City: East Earl
- State / Province: Pennsylvania
- Zip / Postal Code: 17519
- Country: United States
- Contact:
Re: Responsive Layout
Thanks Megan! This is exactly what I needed!
Who is online
Users browsing this forum: No registered users and 16 guests