Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1327560

    Hi there! I’m using 2 different grid rows styles in multiple places on my site. One grid row style is a full width banner: https://andonline.com/. The second grid row style is a group of photos: https://ade-medical.z4pby1v9-liquidwebsites.com/product/wireless-blood-pressure-monitor/.

    This is on 2 different sites but I’d like to be able to replicate the full width banner on the site that has the group of photos. I used this code to create the group of photos:

    .av-layout-grid-container {
    max-width: 950px !important;
    margin: 0 auto !important;
    padding-bottom: 5px !important;
    padding-top: 5px !important;
    }

    how can I now stretch the banner grid row to be full width while keeping the styling of the group of photos?

    Thanks!
    Julie

    #1327612

    Hi Julie,

    I’m not sure I understand what you are looking to achieve, the two elements don’t look very similar to each other. Could you try to explain your intentions a bit further please? If you have a screenshot highlighting what you would like to accomplish, then please share that with us.

    Best regards,
    Rikard

    #1327969

    Hi Rikard,

    Hopefully this is more clear. I want to use a grid row in two different ways on my site. The first way is as a banner at the top of the page. Here is how I want it to look:

    https://drive.google.com/file/d/1ipqyUlRmKIhMUtjGC1SnHbUp1tOY39zM/view?usp=drivesdk

    The banner is full width here, which is what I want. Here is what it currently looks like:

    https://drive.google.com/file/d/1P2tU7Zd4vLto4UMzonRxRY87TXx6PHVQ/view?usp=drivesdk

    It is not fullwidth. The reason it is not full width is that I have another grid row on my site that looks like this:

    https://drive.google.com/file/d/1m0P-OujEI95ySZY5oH9iQo0DJfie6ynv/view?usp=drivesdk

    In order to get this grid row to not be full width, I added this code:

    .av-layout-grid-container {
    max-width: 950px !important;
    margin: 0 auto !important;
    padding-bottom: 5px !important;
    padding-top: 5px !important;
    }

    I want the second grid row (the group of photos) to NOT be full width and I want the first grid row (the banner) to be fullwidth. The code above tells all grid rows to have a max width but I want the banners to be full width.

    Can you help?

    Thanks!
    Julie

    #1328063

    Hi,
    Thanks for the feedback, so for the grid row that uses this css:

    .av-layout-grid-container {
    max-width: 950px !important;
    margin: 0 auto !important;
    padding-bottom: 5px !important;
    padding-top: 5px !important;
    }

    try adding a custom class to it and the css so it will only effect this one element and not the other.

    Best regards,
    Mike

    #1328269

    Hi Mike,

    I think I’m following you but I can’t get it to work. I named the grid row that I don’t want to be full screen product_gallery and I put this in the custom css class field under developer settings. Then I modified the code to say:

    .product_gallery .av-layout-grid-container {
    max-width: 950px !important;
    margin: 0 auto !important;
    padding-bottom: 5px !important;
    padding-top: 5px !important;
    }

    Now the header (the full screen grid row) looks good but the “product_gallery” grid row is off. This code doesn’t seem to effect it at all. Do you see anything obvious that I did wrong? I checked the other css code and I don’t see anything else than could affect this.

    Thanks!
    Julie

    #1328345

    Hi,
    Try your css with no space between the two classes like this:

    .product_gallery.av-layout-grid-container {
    max-width: 950px !important;
    margin: 0 auto !important;
    padding-bottom: 5px !important;
    padding-top: 5px !important;
    }

    I couldn’t find the class product_gallery on either of your links above can you link to a page that you are testing this on?

    Best regards,
    Mike

    #1328585

    Hi Mike,

    I have it on a test page. But your suggestion worked! Thanks!

    Julie

    #1328628

    Hi Julie,

    Great, I’m glad that you got it working. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #1328686

    Actually, I have another question. I have a grid row for the top of this page: https://ade-medical.z4pby1v9-liquidwebsites.com/blog/

    I cannot get the teal area to be the same height as the image on the left, can you help? This is another grid row and the background of the cell is teal. I have a custom class and am using this code:

    .blog.av-layout-grid-container {
    max-width: 1250px !important;
    max-height: 200px !important;
    margin: 0 auto !important;
    padding-bottom: 5px !important;
    padding-top: 5px !important;
    }

    but the cell height is unaffected.

    Thanks!
    Julie

    • This reply was modified 3 years ago by julhobart.
Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Help with grid row spacing’ is closed to new replies.