Set height of service portal banner image

Max Nowak
Kilo Sage

Hi,

 

I'm struggling with setting the height of the service portal banner image - the one that usually contains the welcome message and the global search. As of now, we don't want to show the search bar - it should just be the image, with no widget or text inside. Frustratingly, it seems like the banner image scales with it's content, and has a height of 0 if there's no content inside. Adding empty containers doesn't help.

 

I have gotten this to work by creating a custom css class (and setting the height attribute of that class to 300px), attaching this to the service portal theme, and setting the CSS class of the banner image to said class - but there must be an easier solution that I'm just not seeing?

 

Thanks for your help,

Max

1 ACCEPTED SOLUTION

Sebastian L
Mega Sage

I would do it (and have done it) the exact same way! 🙂 


Best regards,
Sebastian Laursen

View solution in original post

2 REPLIES 2

Sebastian L
Mega Sage

I would do it (and have done it) the exact same way! 🙂 


Best regards,
Sebastian Laursen

Thanks for your reply! I guess I expected it to be easier, but this seems to be the way to go!