Banner image height

mattystern
Kilo Sage

Hello,

I am having trouble getting my banner image set and I'm not sure what else to check. I am using the "legal.png" image I found in another thread. This image is 1258x300, which I believe are the correct dimensions. However, the image height is being cut off and I'm not sure what CSS property to edit.

 

I have tried:

-Updating the height of "How can we help?" widget

-Set a class on the image (test) and called that class on my page-specific CSS with property "height: 300px"

-Set background-repeat and background-size properties. Currently set as "no-repeat" and "cover"

 

I am able to get this to display properly when I open the developer tools or if I shrink the width of my browser window.

 

Here is how it looks:

mattystern_0-1675286213104.png

Here is the desired default result:

mattystern_1-1675286246244.png

Here is the container page:

mattystern_2-1675287455758.png

 

Here is an export of the page css:

main.body {
  padding-top: 0rem !important;
}
/* Padding for container after banner image */
.padding-top {
  padding-top: 2.4rem;
} /* Padding bottom after each widget */
.child-b-margin > span > div > *{
  margin-bottom: 2.4rem;
}

/* Max width for Containers to stay in view port*/
.container {
  max-width: 100%;
}
.test{
height: 300px;
}
@media (max-width: 48em) {
  .ng-scope.mobile-banner {

    background-repeat: no-repeat;
    background-size: cover;
  }
  .child-b-margin > span > div > *{
    margin-bottom: 0rem;
  }
  .padding-right {
    padding-right: 0rem;
  }
   .padding-top {
    padding-top: 0rem;
  }
}

@media (max-width : 62em) {
  .container {
    width : 100%;
  }
  .col-md-4 {
    width : 100%
  }
  .col-md-8 {
    width : 100%
  }
  .left-column{
    padding-left: 2.4rem;
    padding-right: 2.4rem;	
  }	
  .right-column{
    padding-left: 2.4rem;
    padding-right: 2.4rem;	
  }
}

@media (min-width: 62em) {	
  .container {	
    padding-left: 1.2rem;	
    padding-right: 1.2rem;	
  }	
  .left-column{
    padding-right: 0rem;	
  }	
  .right-column{
    padding-left: 2.4rem;
    padding-right: 1.6rem;
  }	
}

I have attached the image I am using for this.

 

Is there another CSS property I could try to set to get this to scale? legal_reupload.png

 

6 REPLIES 6

Community Alums
Not applicable

Hi @mattystern ,

Use the following sizes for the banner and icons for optimal portal performance.

Images and sizes
Images Sizes
Home page 1440 x 400px

Height is 400px and width is responsive. For desktop: 1440px width viewport, 1440 x 400px

Topic page 1258 x 300px

Height is 300px and width is responsive. For desktop: 1440px with viewport, 1258 x 300px

Icons Topic icon: 56 x 56px

sub- topic icon: 28 x 28px

 

check link this has step by step detail.

 

Community Alums
Not applicable

Hi @mattystern ,

 

Hi Sandeep,

 

The linked thread was helpful, thanks! My image is still being cut-off with the width-xl property on the row, both at 1440x400 (with height: 400px set) and 1258x300 (with height 300px set). Do you have any other suggestions for this?

 

mattystern_2-1675343739360.pngmattystern_3-1675343747628.png

Thanks!

Community Alums
Not applicable

Try reducing the height from 400px and check once.