-
AuthorPosts
-
May 1, 2023 at 4:43 pm #1406102
Can I change the #main background-color separately for each color_section?
We are using border radius for the color_sections, but when we switch to next color section, the background-color is not changeable. Hope you guys can help!
- This topic was modified 1 year, 7 months ago by BenjaminSpeedtsberg.
May 2, 2023 at 4:04 am #1406145Hey BenjaminSpeedtsberg,
Thank you for the inquiry.
You are actually seeing the default background color of the main container. To change this, you have a couple of options:
1.) Disable the border radius in the bottom left and right corners of the color section. This will ensure that the color extends to the full width of the section without being cut off by the rounded corners.
2.) Apply a negative top and bottom margin to the color section to pull or push the element itself and the surrounding elements. This will conceal the main container’s background and allow the color to display as the background for the section.
You can try this css code.
#border-radius-top, #border-radius-full, #border-radius-bottom { z-index: 9999; position: relative; } #border-radius-top { border-radius: 80px 80px 0px 0px; margin-top: -80px; } #border-radius-full { border-radius: 80px; margin-bottom: -80px; margin-top: -80px; } #border-radius-bottom { border-radius: 0px 0px 80px 80px; margin-bottom: -80px; }
You may need to adjust the space between the sections after adding the css code, using the horizontal/separator element or with a custom css.
Best regards,
IsmaelMay 2, 2023 at 6:12 am #1406148Hi,
It’s working! Thanks a lot.
It needs some adjustments, but I fixed it with the white space element to expand the minus margin.
May 2, 2023 at 7:14 am #1406150Found one issue.
The video pop up is not very happy for this code:
#border-radius-top, #border-radius-full, #border-radius-bottom {
z-index: 9999;
position: relative;
}Are there anything I could do, to style the video popup.
- This reply was modified 1 year, 7 months ago by BenjaminSpeedtsberg.
May 2, 2023 at 7:18 am #1406152I may found the issue.
the z-index was higher than the video pop up z-index at 1045. I tried to change the z-index to 1000 for the color_sections. And now it seems to work.
Can you guys maybe confirm that og do you have a better solution. :-)
- This reply was modified 1 year, 7 months ago by BenjaminSpeedtsberg.
May 4, 2023 at 5:07 pm #1406466 -
AuthorPosts
- You must be logged in to reply to this topic.