Specific height of parent page/element

Posted in: Newspaper
Post count: 8

Hello,

I would like to embade financial charts at my website. Instruction of chart’s software producers advise that “it is important to set a specific height of parent element for widget to work properly”. I tried this code:

Custom code:
html,body {
height:100%;
}

doesn’t work

Html div:

<div style=”height:200px”>hello</div>

Works but I need 100% auto height and the best solution would be general custom code, not addind one by one to every elements.

Regards,
Marek

Post count: 23312

Hello DzielnyTabaluga,

Unfortunately, you cannot use height 100% to the entire theme body because the layout of it can be damaged, sorry! If you want to add this chart, please notice that you will have to create your custom container and then you can add your desired CSS in Theme panel with your desired width and height.

..your custom code..

.my_custom_chart{
width:100%;
height:100%;
}

Please notice that is just a simple example. This can be a starting point to your customization in this regard. If you are not aware of the steps which are needed to take in this regard, please consider hiring a freelancer/developer to help you because we cannot provide custom work at the moment, sorry!

Thanks for the message!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.