Jump to content

Archived

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

balfred1345

Setting Max Height on Hero or Text Box

Recommended Posts

balfred1345    5
balfred1345

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:

http://whub34.webhostinghub.com/~videoh6/cidev2.com/

 

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

 

Thanks very much,

Bruce

Share this post


Link to post
Share on other sites
James B    436
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.

  • Like 1

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
balfred1345    5
balfred1345

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
greenfly    230
greenfly

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

    • lionel1
      By lionel1
      Hi,
      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 
      Lionel 
       
    • 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
      Thanks,
      Stu
    • kwaoru
      By kwaoru
      Hi,
       
      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!  
      Thanks
    • kwaoru
      By kwaoru
      Hi,
      I desperately need to deactivate the responsive function on mobile for reasons. It looks so messy with the responsive look on mobile and not navigating or informative at all as it is. 
      I searched for solutions online and tries some of those that I found but nothing worked out. Also I found a previous post on this forum says that this theme pagelines DMS is not meant to be build to deactivate the responsive function... 
      Also tried with widget such as WPtouch to edit the mobile look a little more informative but as I am using "single page" theme on pagelines, the frontpage(main page) never appears on those app.
      Seems like not compatible?
      If there is no way to deactivate responsive function or I'll have to recreate another page just dedicated for a mobile page? or change the theme completely and build a page from scratch?
      I have been searching for this for two days already...
      Could anyone wise and kind out there, please help me?
       
      Thanks,
×