background image
Hi everyone
I realise a web site who look like this

11 Replies
the problem is the picture don't cover the div

my html code:
my css:
What should I do make the picture appear completely ?
thanks by advance
what do you mean by "background don't cover the div"?
sorry Im a french guy my english is not well
the image should appear in the div with a class .two
but the image don t appear completely
what can really help with people answering your questions is to use something like codepen (https://pen.new) so that you can show the issue
if you need to use photos there, you can use something like https://picsum.photos to get random images of any size
if you only share the code like you have, people have to try to reason about how the browser will render that, if you have a live example people can just see how it renders
you want to see the whole image in the div rather than just a small part, you mean?
the with codepen is the assets I don t know how to had the image
if you need to use photos there, you can use something like https://picsum.photos/ to get random images of any size
yes
then
cover is not what you wantI get the solution I change the background -size cover to contain