Jump to content


This topic is now archived and is closed to further replies.


Setting Max Height on Hero or Text Box

Recommended Posts


Can you please tell me the best way to set a max-height so the form and the image I've placed in a Hero element can re-size responsively without getting too long as the page gets resized more narrowly.


I tried using Max-Height, but I assume I'm running into a float problem, because this just makes the Hero (or text box) element the max height, but doesn't scale the form and image within the Hero Unit itself.  Therefore the Hero Unit itself is smaller than the form and photo within it, and the form and photo go beyond the boundaries of the Hero Unit and overlap the content below. Obviously, not my intended result.


In my attempt to try the same thing in a Text Box instead of a Hero Unit, I set the max-height of the full-width section, but that also didn't do the job in that it didn't make the form and image not go more than the max-height, it just cut them off. 


You can take a look at the site here:



I don't have Max-height setup in the Hero Unit right now due to the overlapping problem described above.


Thanks very much,


Share this post

Link to post
Share on other sites
James B

Hi there, unfortunately you won't be able to control the height like that for that area. The form isn't set to scale based on the height like it does for some other items like the sliders for example. Looking at the way the form resizes, nothing actually scales down. The font size/field size all stay the same just move alignment to fit within the page.


I would say the best way to keep the form shorter would be to adjust the width of the form on the mobile layout, remove the padding/margins so it has more room and doesn't force as much content down onto the next line, or possibly reduce the font size on the mobile layout for the form if possible.

Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post

Link to post
Share on other sites

Thanks James.

I'll work on the form as suggested and use some Media Queries.

Share this post

Link to post
Share on other sites

Please let us know how you get on. 

The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 


Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post

Link to post
Share on other sites

  • Similar Content

    • stijnxo
      By stijnxo+
      Is there a way to disable the responsive function of your iBoxes?
      I do not want all iBoxes underneath each other on mobile, is there a way to fix columns or group boxes?
      I use them for small links and want them to stay next to each other, see attachment
      Please let me know.

    • lionel1
      By lionel1
      I use on my home page " impulse module " but when i look on my iPhone the image is cut and not responsive .
      i only have this problem with this module not with the other one .
      thanks for ur help
      website / www.elonakane.com 
    • StuLeeUK
      By StuLeeUK+
      Good morning,
      I have set up my homepage using the Elements sections, a Masthead at the top and then a selection of Heroes lower down.
      I only just realised that the Heroes set a H1, as does the Masthead.
      Is there an easy way I can change the Heroes to an H2/H3 etc so as to improve the structure of my headers, whilst keeping the Masthead as H1?
      I really don't know much at all about CSS, which is why I use Pagelines because it's just so easy to create good looking pages without too much confusion.
      page for reference is https://www.avangocouriers.co.uk
    • kwaoru
      By kwaoru
      I have been using DMS and pagelines.
      I am facing to a huge trouble with the appearance of one of my page on mobile (smart phones) built with pagelines.
      However I haven’t come to any solutions to organise either edit the appearance of mobile view to look neat or deactivate the responsive function. 
      Now it looks totally messy on the phone...
      1. Is there any way to edit the appearance of the mobile version (responsive theme)?
      2. Is there any way to deactivate responsive function?
      If I could receive support from you to go thorough this process I would be happy to be a pro member. 
      Looking forward to hearing from you.
    • Paul
      By Paul+
      I have woocommerce store, product shows title and price fine until reduce screen with on a tablet/mobile phone the price and title gets removed?  Any ideas? 
      Here's an example page: https://thelaptopfixers.com/product/operating-system-re-install/
      Try it on both desktop PC browser then resize to mobile/cell phone size!