Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Text to the Right margin

  • Hello, I’m still struggling to do something. I’ve tried quite a few options in Flex and Grid. On the page below in the Gray Containers, the first (1) example is basically what I’m looking to do and I’ve had to cheat it by adding some margin on the right that then I would have to adjust for every viewpoint. Also I would like to make a version of the text at the bottom right that sticks to the right of inner margin not the edge of the browser.

  • Hi there,

    the first (1) example is basically what I’m looking to do and I’ve had to cheat it by adding some margin on the right that then I would have to adjust for every viewpoint.

    Typically, the standard setup involves adding padding to the parent container: 40px for left and right padding on desktop, 30px for tablet, and 20px for mobile.

    So yes, the most common setup does require different padding values for different devices; there’s no one-size-fits-all setting.

    However, for a layout like #1, I would use a simpler structure like this:

    - container
     -- headline

    Container:
    – padding-left/padding-right: 40px for desktop, 30px for tablet, 20px for mobile.
    – display: flex, align-items: flex-end (bottom), justify-content: flex-end(right).

    ————————————————–

    And one more thing, to have a full-width layout, we would recommend:

    1. Set the content container to full width, you can do so via a layout element (mass operation) or the layout metabox.

    2. Now every container you added to the page is full width by default, you can remove the align full option, and set the alignment to default.

  • Thank you, I am learning every minute. I revised the test page and I don’t get why I can not make the line not break and run all way across the bottom with out breaking?

  • Hi there,

    Could you let me know which line you’re referring to?

  • The “Personalized medicine begins with you” line

  • You have a <br> tag before the word you, so the word will wrap to the next line because you instructed it to do so 🙂
    https://app.screencast.com/c8ehLWfEzNw8b

  • Embarrassing on my part. Thank you!

  • No Problem 🙂

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