[Support request] Resizing Elements for Mobile

Home Forums Support [Support request] Resizing Elements for Mobile

Home Forums Support Resizing Elements for Mobile

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1000352
    Carrie

    How do I make my Page Hero elements resize correctly for tablet/mobile? They’re gigantic.

    #1000367
    Leo
    Staff
    Customer Support

    Hi there,

    You can try reducing the padding for mobile with the mobile toggle:
    https://www.screencast.com/t/ATHNN0Eq

    https://docs.generatepress.com/article/header-element-overview/#padding

    Let me know if this helps ๐Ÿ™‚

    #1000371
    Carrie

    Wouldn’t it not be the same padding for different sizes of mobile devices and tablets – not one universal padding setting?

    If there is a “best practices” settings that work here, please LMK.

    #1000375
    Leo
    Staff
    Customer Support

    Mobile devices are generally quite similar in size so the same padding usually works.

    You could also try using % as unit instead of px.

    We could also write some CSS to target each screen width if you’d like to go that route as well.

    Let me know ๐Ÿ™‚

    #1000379
    Carrie

    If I used %, what numbers would you recommend that I use? Do I need padding on all four sides?

    #1000380
    Leo
    Staff
    Customer Support

    There isn’t a recommended setting for this unfortunately – it’s all personal preference and trial error.

    Also on a second thought, since you don’t actually have any content in the page hero, would it be better to just insert that image as a static image in the page hero content instead of using it as a background image?

    Then the image itself would resize on mobile (as opposed to background image which isn’t responsive).

    #1000383
    Carrie

    Can you please tell me how to insert a static image in the page hero content? Is it using html for the image link in the CSS area?

    #1000403
    Leo
    Staff
    Customer Support

    What if you just use the featured image for that page?

    #1000404
    Leo
    Staff
    Customer Support

    What if you just use the featured image for that page?

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