<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<style>
body{
background-image: url("any image);
background-size: 100px;
background-repeat: space;
}
</style>
</body>
</html>
it should fill the whole page with that picture but it only fits one row.
i changed the size to set or intial it dosent matter.and the round reapeat dosnet work too.it fils the row but it comprses like a hundred images in a col
2
Answers
If i understood your questions right , i think you want the background to fill the available space
the background-repeat:no-repeat will only show it once and the cover to fill all space available . Is this what you wanted to do ?
You don’t have any content taking up the space. Your html tag practically has no height and the images that are showing in 1 row are overflowing. Increase the html height to 100% and the images will cover the entire viewport:
Edit: Updated the html style to be
min-height:100%
as per @Temani’s recommendation.