Learn CSS #9

CSS Background Attachment


CSS background-attachment

The background-attachment property specifies whether the background image should scroll or be fixed (will not scroll with the rest of the page):

Example

Specify that the background image should be fixed:

body {
  background-image: url("img_tree.png");
  background-repeat: no-repeat;
  background-position: right top;
  background-attachment: fixed;
}

Example

Specify that the background image should scroll with the rest of the page:

body {
  background-image: url("img_tree.png");
  background-repeat: no-repeat;
  background-position: right top;
  background-attachment: scroll;
}

Categories

53 Responses

  1. Hello bro!More info!..
    пансионат для престарелых
    https://pansionat-rnd.ru/
    “Дом престарелых” – это общепринятое название для социального учреждения, которое оказывает услуги по социальной защите и помощи престарелым людям. Если вы ищете информацию о конкретном доме престарелых в Ростове-на-Дону, можете уточнить местоположение и другую информацию.
    сеть пансионатов

    http://www.google.com.tw/url?q=https://pansionat-rnd.ru/ http://www.google.co.ma/url?q=https://pansionat-rnd.ru/ http://www.google.com.hk/url?q=https://pansionat-rnd.ru/ http://www.google.com.lb/url?q=https://pansionat-rnd.ru/ http://www.google.cm/url?q=https://pansionat-rnd.ru/

Leave a Reply

Your email address will not be published. Required fields are marked *