Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1369682

    I know that I cannot nest columns. And, I know that I cannot put a grid row in a color section. But, I am trying to achieve an effect like the one below:

    View post on imgur.com

    In a perfect world, this would be a color section with a blue background (easy to do). Within the color section would be two columns, each with a white background and an orange border (easy to do). Within each column is an image on the left and a text block on the right. (where I am stuck). Can this be done through an Enfold element or via a set of CSS?

    Thank you
    Roger

    #1369683

    I should mention that I can get the effect with a grid row — if only I could put the grid row within a color section.
    Example

    #1369814

    Hi,
    Thanks for your patience, try this:
    a color section with a blue background ▸ 4 columns, each with a white background and an orange border ▸ inside each column, a text element with an image on the left and a text block on the right.
    2022-10-22_009.png
    the expected results:
    2022-10-22_010.png

    Best regards,
    Mike

    #1369841

    but you know that you can nest columns in a grid-row cell?
    To have the grid-row not as full-width – you can add a snippet to your child-theme functions.php.

    See result and all code you need: https://enfold.webers-webdesign.de/grid-row-special/
    PS: with no gap – there will be no gap !
    I prefer to have here 1/4 cells besides each other and style them by grid layout.

    but you can also style it as 1/2 Cells this way:

    #1369847

    Hi,

    Thanks for helping out @guenni007 :-)

    Best regards,
    Rikard

    #1370050

    Wow! These are both great solutions. I have the first one implemented right now, but it is only good if I create different responsive versions. The word wrap doesn’t play at all widths.


    @guenni007
    , your solution looks elegant! I will try that shortly. Thank you so much.

    #1370150

    Hi,
    Thanks for sharing Guenni007, your example looks really nice.

    Best regards,
    Mike

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.