What is recommended width and hight for service portal homepage search container

ritaaudi
Tera Contributor

Hi: Anyone know what is the recommended width and hight for service portal homepage search container? The hight of the image I uploaded is getting chopped off.

Thank you!

8 REPLIES 8

Hi Rita,



I'd add a class to the page specific CSS;



.stretch-bg {


  background-size: 100% 100% !important;


}



Then on the container, set the parent class to stretch-bg



Cheers,


Matt


This worked for me!  Thank you!

Hi Rita,



Please check if this helps:



background-image: url(http://lorempixel.com/1400/1400/sports/3/);
  background
-repeat: no-repeat;
  background
-size: 100vw 100vh;
  background
-attachment: fixed;
  height
: 40em;
  margin
-top: 0;
  padding
: 0;



Reference: html - How do I get my background image to not be cut off at the bottom? - Stack Overflow


Thank you; you have both been helpful. Do you know if there is a recommended standard width and height to begin with so the images don't stretch or shrink? Best regards, Rita