Employee Center - Applying Background Image to Homepage Search (clone)

MichaelCreatura
Tera Guru

Hello,

 

On our employee center homepage, we are trying to apply a background image to the employee search so it looks like this:

MichaelCreatura_0-1679045966592.png

However, it appears the only way of applying a background image is to apply it to the entire container:

MichaelCreatura_1-1679046031454.png

Is there a way of achieving this? 

MichaelCreatura_2-1679046053335.png

Thanks in advance 🙂



1 ACCEPTED SOLUTION

Community Alums
Not applicable

@MichaelCreatura , I'm not sure but OOTB u cannot achieve what ur requirement for ESC portal.  Do inspect to figure out the required CSS for set the img in right position write "paddings"and "positioning" on ur css.

 

Thanks.

View solution in original post

10 REPLIES 10

Community Alums
Not applicable

Hello @MichaelCreatura ,

This is possible in SP portal using "contain" option in background styling.

Khushbookabra_0-1679074116565.png

Khushbookabra_3-1679074567064.png

 

But in ESC "contain" option will give u this result:

Khushbookabra_1-1679074447132.pngKhushbookabra_2-1679074470354.png

 

@MichaelCreatura , Please mark my answer as accepted solution and helpful. If it is works for u.

 

Thank you.

Thanks, @Community Alums but when I do this it looks like the below:

MichaelCreatura_0-1679075284945.png


What dimensions does the image need to be?

 

Community Alums
Not applicable

@MichaelCreatura , means it is working for u.

use 1440 × 670 px (sp)  or 2000 × 250 px (esc) dimensions for image. (pls try both)

@MichaelCreatura , Please mark my answer as accepted solution and helpful. If it is works for u.

Thank you!

Hi @Community Alums 

Unfortunately, neither of those worked the attached is 2000 x 250 and using the 'contain' but below is the result:

MichaelCreatura_0-1679302155369.png

MichaelCreatura_1-1679302192300.png

Thank You! 



MichaelCreatura
Tera Guru

I've managed to achieve the below:

MichaelCreatura_1-1679316268283.png


By adding the below:

MichaelCreatura_2-1679316295039.png

But now I can't get the search bar and title to sit ontop of the background image!