Is there a way to change the container height when building service portal in designer?

etobia
Kilo Expert

Is there a way to change the container height when building service portal in designer?

5 REPLIES 5

Rama Chandra D
Kilo Guru

Hi Edwin,



From designer, I would say no there isn't. Usually, I have never set the height, as it adjusts itself with the widget within the container.



Darshak


Jaspal Singh
Mega Patron
Mega Patron

Hi Edwin,



If you open up the container you would be finding width field that can be used to adjust the display of container.


find_real_file.png



For height I doubt it has anything as it automatically adjusts itself on the basis of width selection.



Thanks,


Jaspal Singh



Hit Like or Correct on the impact of response.


nathanfirth
Tera Guru

The container will by default adjust it's height based on it's content, however if you wanted to set specific heights I would just add a class to the container, and then define that class in the theme CSS. For example:



.height-sm {


      min-height: 200px;


}



.height-md {


      min-height: 400px;


}



.height-lg {


      min-height: 600px;


}



I would use min-height as this would still allow the content to impact the container if needed. I would also be careful with fixed heights as this will not look good on mobile... perhaps you could use media queries to set the heights at the various breakpoints.


Amruta8
Tera Expert

Hi



Please check this link:


Service Portal home page question