[Resolved] CSS Formatting For Header Sections – Unequal Widths

Home Forums Support [Resolved] CSS Formatting For Header Sections – Unequal Widths

Home Forums Support CSS Formatting For Header Sections – Unequal Widths

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1146359
    Mary Pearson

    Can you please tell me the correct way to format three unequal header sections. I know they need to add up to 100% but I just can’t figure out how based on the following from documentation.

    .header-section > div {
    width: 33.33333%;
    }

    Many thanks

    #1146384
    Leo
    Staff
    Customer Support

    Hi Mary,

    If you are using the same HTML here:
    https://docs.generatepress.com/article/split-header-three-sections/

    Then you would replace this part of the CSS:

    .header-section > div {
        width: 33.33333%;
    }

    With this:

    .header-section .header-section-1 {
        width: 20%
    }
    .header-section .header-section-2 {
        width: 60%
    }
    .header-section .header-section-3 {
        width: 20%
    }

    Let me know if this helps ๐Ÿ™‚

    #1146389
    Mary Pearson

    Thank you so much Leo!!!!

    #1146395
    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.