+ 5

How to align the background image to center in CSS?

Html css

8th Aug 2020, 10:17 AM
Md Aminul Islam Sakib
Md Aminul Islam Sakib - avatar
3 ответов
+ 5
Thanks brother
8th Aug 2020, 10:26 AM
Md Aminul Islam Sakib
Md Aminul Islam Sakib - avatar
+ 1
background: url(image.jpg) 50% 50% / 50% no-repeat black; https://code.sololearn.com/W6C42qMCYR4U/?ref=app Please note that float seletor is not for adjusting background image location, it's for element alignment to left, right side.
8th Aug 2020, 12:02 PM
Calviղ
Calviղ - avatar