Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1485373

    Hey Enfold
    I got 3 footer widgets that I like to center.
    I’d like to keep the text left aligned.

    Thanks

    #1485386

    Hey Alan,
    When I check the footer on your site, I see three 1/3 columns which are centered, see image 1 below.
    Since each column is 1/3 and the content is minimal there is a lot of empty space, see image 2 below.
    I assume that you want to make the two columns with text smaller so they are closer together and the center all of them.
    Is the correct?

    Best regards,
    Mike

    #1485419

    Hey Mark

    You’r right, I want the columns with text to be smaller.

    Thanks ;)

    #1485421

    try:

    @media only screen and (min-width: 768px) {
      #footer .container {
        display: grid;
        gap: 20px;  
        grid-template-columns: repeat(3, 1fr);
        justify-content: space-between;
      }
      #footer .container .flex_column {
        width: unset;
        padding: 0;
        justify-self:center;
      }
      #footer .container .flex_column:nth-child(1) {
        justify-self: left;
      }
    }

    if you like to have the first column to be centered in its container too ( the text preserves align left ) – then erase the last rule for first child column

    #1485422

    or if you like to have it for responsive case too ( centered )

    replace with:

    #footer .container {
      display: grid;
      gap: 20px;  
      grid-template-columns: repeat(3, 1fr);
      justify-content: space-between;
    }
    
    #footer .container .flex_column {
      width: unset;
      padding: 0;
      justify-self: center;
    }
    
    #footer .container .flex_column:nth-child(1) {
      justify-self: left;
    }
    
    @media only screen and (max-width: 767px) {
      #footer .container {
        gap: 0;
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        justify-items: center;
      }
      #footer .container .flex_column {
        width: unset !important;
        margin: 0;
        padding: 0;
        justify-self: center !important; 
      }
    }
    #1485424

    That’s brilliant, thanks ;)

    #1485425

    so it is not your own page? Its for a different page?

    #1485426

    This is for a client page, I’v made quite a few web designs for Clients using Enfold ;)

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