Site logo

[Support request] Forcing grid container to be always square

Home Forums Support [Support request] Forcing grid container to be always square

Home Forums Support Forcing grid container to be always square

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2438023
    Igor

    Hi Guys,
    Is it possible to force the grid container to always be in square aspect ratio? Thank you!

    #2438077
    Fernando
    Customer Support

    Hi Igor,

    To clarify, are you referring to a default Grid container or a GB Container Block?

    In any case, it should be possible. You’ll just need custom CSS.

    Can you provide the specific link and point us to the Container you wish to have a “square” aspect ratio?

    You may use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information

    #2438086
    Igor

    Hi Fernando,

    Thanks for quick response! I think I solved the problem with a simple css code “aspect-ratio: 1 / 1;”
    I’m still not sure if this works in all browsers, but it does the job for now.
    Thank you!

    #2438087
    Fernando
    Customer Support

    Glad you resolved the issue! That’s the ideal solution as well, and it should be compatible with all current Browsers. Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/aspect-ratio#browser_compatibility

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