28 Ağustos 2016 Pazar

css background

Using an image on a background is pretty simple:
body {
  background: url(sweettexture.jpg);
}
The url() value allows you to provide a file path to any image, and it will show up as the background for that element.
You can also set a data URI for the url(). That looks like this:
body {
  /* Base64 encoded transparent gif */
  background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
}
This technique removes one HTTP request, which is a good thing. But, there are a number of downsides, so before you start replacing all of your images make sure you consider all the

Hiç yorum yok:

Yorum Gönder