Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Flexform › Height of a 'Text Block (Full Width)'
New Landing › How can we help? › Themeforest Theme Support › Flexform › Height of a 'Text Block (Full Width)'
-
Posted in: Flexform
-
May 29, 2013 at 3:53 pm #6485
How can I set the height of the ‘Text Block (Full Width)’ element?
May 29, 2013 at 7:24 pm #6516If in the page builder you click the edit icon you can add an extra class for example “extraHeight” then go into “Theme Options -> General Options” and scroll to “Custom CSS” and add (for example)
.extraHeight{ height:550px; }
Thanks
BenMay 29, 2013 at 8:36 pm #6557Thanks Ben! That does indeed set the height of that element. In my case, less height than the default is what I wanted so I set it to 50px. However, when I do that, the text no longer seems to be centered vertically (middle). It looks aligned to the bottom. In the Page Builder the text looks to be flush top and centered. But when the page is viewed it looks flush bottom.
Any thoughts on how to center the text vertically? It is centered horizontally which is great.
Thanks again for the help with this.
Russ
June 3, 2013 at 8:21 pm #6956Hi Russ,
Can you share a link to the page where you’re using this? It might be that the text is clipped because of the height being too small.
Regards,
————————————————————————————————————
Cosmin
Support AssistantJune 3, 2013 at 9:05 pm #6983We’re using FlexForm for a sort of Client Portal so II have attached a screen shot if that helps. If not, I’ll request access I can share.
As you will see, the top Text block has the height set as we’d like which we achieved with your instruction but the text does not look centered vertically. The bottom text block is the default height and it looks centered vertically, it’s just a bit too ‘tall’ for the layout we want to do.
Thank you,
RussellJune 3, 2013 at 9:20 pm #6992Tried to replicate this and I believe you’d need to reduce the line-height on the page headings.
Try this custom CSS:
.extraHeight.page-heading h1 { line-height: 20px !important; }
Try adjusting that 20px and see how it goes. If no joy, I’ll need to see the site in order to help.
Regards,
————————————————————————————————————
Cosmin
Support AssistantJune 4, 2013 at 1:30 pm #7041Thank you for the suggestion and CSS. Do I need to apply both CSS styles, or just the line height on the page headings? I added it to the FlexForm ‘General’ options area so both styles are there separated with a line break. I assume we can add additional custom CSS in the same way?
I tried applying just the line height CSS and also both of the styles together but no joy. If they both need to be applied do I just separate them with a comma, or some other combination?
I can likely provide access to the site if this doesn’t work but thought I’d see if I can get it to work myself.
Thanks again for the great help.
Russ
June 5, 2013 at 2:16 pm #7176Hi Russ,
To add both properties, you would do:
.extraHeight { height:550px; } .extraHeight.page-heading h1 { line-height: 20px !important; }
Regards,
————————————————————————————————————Cosmin
Support AssistantJune 5, 2013 at 7:22 pm #7240Thank you for that. I was able to add that to the Flexform “General Options’ area but how should it be added too the ‘Extra Class Name’ field in the Text Block element? That field is a single line so I wasn’t sure if I should use a comma or some other separator between the two. The above uses a line break but that doesn’t seem to be an option in the Extra Class Name field.
Thanks again for your patience with me in this matter, and for the great support.
Russell
June 5, 2013 at 7:37 pm #7246Just add it into the general options, scroll down and you’ll see “Custom CSS”
Thanks
BenJune 6, 2013 at 3:13 pm #7356Thanks Ben,
I had already added it to the ‘Custom CSS’ section in the General Options. I was wondering how I should add them both to the ‘Extra Class Name’ field when I edit the Text Block element.I added ‘.extraHeight.page-heading h1’ to that field by itself but it doesn’t have any effect. I also added ‘.extraHeight’ to that field by itself and that does effect the height of the Text Block which is good but then the text is not centered vertically. I was asking how I should add both of those together in the ‘Extra class name’ field… do I use a comma or just a space between them in that single line field.
Thanks again for your help,
Russell
June 6, 2013 at 3:44 pm #7376Hi Russel,
In the Extra Class field, you must only add the name. For example in your case, add this bold text: extraHeight
Regards,
————————————————————————————————————Cosmin
Support AssistantJune 6, 2013 at 5:01 pm #7393This reply has been marked as private.June 6, 2013 at 10:42 pm #7413I am actually running into the exact same problem, too much space above and below the text on the full-width text box. I have read through this post several times, but still can’t get it sorted.
I have attached screenshots of my current settings and what it looks like on my homepage.
Thanks.
June 11, 2013 at 2:41 am #7769Just wanted to give this a bump in case my reply was overlooked, thanks!
Mike
-
Posted in: Flexform
You must be logged in and have valid license to reply to this topic.