Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1486880

    Dear people on the support forum,

    I am wondering for a while if the following is possible:

    I have a full-width website with a maximum content width of 1310px.
    The header and content sections (color sections) are all 1310px wide.
    I would like to create a layout with 2 columns, with text in the left column and an image in the right column. I want the text to align with the standard content width of teh entire website, but I want the image in the right column to stretch to the right edge of the screen. I have set the image as a background image but, naturally, it only stretches to the edge of the 1310px width.

    I tried achieving this with a grid-row section, but then the text aligns to the left of the screen. I know I can set a left margin or padding to approximate the same alignment, but I don’t know how to align it exactly with the rest of the content sections.

    Any help is highly appreciated.

    #1486884

    maybe this is helpful – use your idea of grid-row.
    my page setting is 1510px – so half width is 755px ( that is the value you see on that example page )
    (there has to be the same padding left/right as section container) see comment in code. – If you break the cells at 989px than media query had to be adjusted.

    https://webers-testseite.de/marcus/

    #1486897

    Hi,

    Could you post a link to where we can see the results that you are getting please? If you have a screenshot highlighting your intentions, then that would be helpful as well.

    Thanks for helping out @guenni007 :-)

    Best regards,
    Rikard

    #1487227

    Hello Guenni and Rikard,

    Thank you for your replies!

    I was able to created the layout I wanted using @guenni007 Guenni’s solution!
    The code I ended up using is:

    @media only screen and (min-width:768px) {
    .content-alignment .flex_cell.avia-builder-el-first {
        padding-left: calc(50% - 655px) !important;
      }
    	
    .content-alignment .flex_cell.avia-builder-el-first .flex_cell_inner {
        padding: 50px 50px !important;
      }
    }

    The page, under development:

    Thanks for the help!

    • This reply was modified 2 weeks ago by pelgrimrat.
    #1487230

    Looks nice!
    U bent van harte welkom

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