Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
Background image position
Hi, good day. please can someone help me set this image position to the bottom, the code below is not giving me what I want. Your help will be appreciated a lot. Thanks. body { background-image:url(" https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcSJ8adM449E85H4tPivAm36MOAis5kGJlaojw&usqp=CAU "); background-repeat:no-repeat ; background-position:Bottom;
4 ответов
+ 1
background-position:0% -50%;
Add this to your css instead of
background-position:Bottom;
0
Okay so I tried it but it went to the middle, I made it -100% , but still not to the bottom. Please what else can I do ?
0
It is working fine for me:
body{
background-image: url("http://www.sololearn.com/uploads/css_logo.png");
background-repeat:no-repeat;
background-position: bottom ;
}
0
Okay. I don't know why is not working for me. But I have gotten what I wanted though. I had to add the background-attachment property and set it to fixed.
Thanks for contributions! 🙏🏻