Banner image height

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2023 01:40 PM
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:
Here is the desired default result:
Here is the container page:
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2023 08:52 PM
Hi @mattystern ,
Use the following sizes for the banner and icons for optimal portal performance.
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2023 05:14 AM
Hi @mattystern ,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2023 05:16 AM
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?
Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2023 05:19 AM
Try reducing the height from 400px and check once.