How do I make the background image fit mobile device cause | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

How do I make the background image fit mobile device cause

27th Jun 2021, 6:19 PM
brook solomon
2 Réponses
+ 1
Set hight and width 100%
27th Jun 2021, 6:21 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
background-size: cover; or: background-size: contain; former fit the background to fit background area, cropping if needed later fit without croping (repeatition of image if set) you may need: background-position: center center; baclground-repeat: no-repeat;
27th Jun 2021, 8:04 PM
visph
visph - avatar