Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to padding between images in background: repeat using CSS

Tags:

css

I want to create a background with repeated image using CSS

background:  url(../images/bg.PNG) repeat;

The problem is that the images are very close to each other, how can I add a padding for every image?

like image 570
user1684140 Avatar asked Mar 13 '23 19:03

user1684140


1 Answers

html {
  background: white;
}

body {
  width: 639px;
  height: 280px;
  background: url(//www.gravatar.com/avatar/cbfaff96665b7567defe1b34a883db8b?s=64&d=identicon&r=PG) silver;
  background-repeat: space;
  border: 1px dotted red;
  margin: auto;
}
like image 105
Qwertiy Avatar answered Apr 26 '23 22:04

Qwertiy