Site logo

[Resolved] Grid CSS Question

Home Forums Support [Resolved] Grid CSS Question

Home Forums Support Grid CSS Question

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2527554
    Tom

    Hi,

    I am trying to style the containers inside a grid as simply as possible. I am thinking there has to be a quicker way.

    https://imgur.com/gnJBjia

    I can successfully apply the style to the WHOLE grid element – but that is not what I am wanting to do.
    This style worked with the grid as a whole – but not the indivudual containers within the grid:

    .border-test  {
        background-color: var(--base);
        border-right-style: solid;
        border-right-width: 4px;
        border-bottom-style: solid;
        border-bottom-width: 4px;
        border-color: #fff;
    }

    I can find any documentation to help. Do I have to apply the style to EVERY container? Or is there a way to trigger it once from the grid level?
    Any thoughts are appreciated.

    #2527644
    Leo
    Staff
    Customer Support

    Hi there,

    There isn’t a way to apply a specific style to the containers inside a grid from the grid level.

    I believe what you can do is configure the first container underneath the grid and then duplicate the container a few times to complete the entire table.

    GB pro’s copy paste style and global style might help with this as well:
    https://docs.generateblocks.com/article/copy-paste-styles/
    https://docs.generateblocks.com/article/global-styles/

    Let me know if this helps 🙂

    #2527691
    Tom

    Copy-paste will work if nothing else! Thanks for pointing out that link!

    #2527751
    Leo
    Staff
    Customer Support

    No problem 🙂

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