WebHelp: background picture in "hero banner" section not loading
Posted: Tue Nov 11, 2025 5:04 pm
Hello again,
Working on my webhelp transformation, I ran into another problem when I tried to add a background picture to my WebHelp main page (in the "hero banner" section). For some reason, the space just stays white, however the text line I want to lay above the picture is shown in the output - so the file is working. What could be wrong with the following xhtml fragment? I double and triple checked the location of the PNG in the project folder.
Thank you in advance.
Best
Herdis
Working on my webhelp transformation, I ran into another problem when I tried to add a background picture to my WebHelp main page (in the "hero banner" section). For some reason, the space just stays white, however the text line I want to lay above the picture is shown in the output - so the file is working. What could be wrong with the following xhtml fragment? I double and triple checked the location of the PNG in the project folder.
Code: Select all
.custom-hero-banner {
position: relative;
width: 100%;
height: 250px;
background-image: url('../images/Testbackground.png');
background-repeat: no-repeat;
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
}
.custom-hero-banner .banner-text {
font-family: 'Oswald', sans-serif;
font-size: 3.5em;
color: #588bd7;
text-align: center;
padding: 0 1em;
}
</style>
</head>
<body>
<div class="custom-hero-banner">
<div class="banner-text">Our documentation at your fingertips</div>
</div>
</body>
</html>
Best
Herdis