Skip to content

Instantly share code, notes, and snippets.

@creyn

creyn/index.css Secret

Created August 11, 2018 10:57
Show Gist options
  • Save creyn/d540284113f3155d11b7d15f8eb84225 to your computer and use it in GitHub Desktop.
Save creyn/d540284113f3155d11b7d15f8eb84225 to your computer and use it in GitHub Desktop.
Droga Programisty : Szybkie Palce : CSS body
body {
/* sciezka do pliku z tlem */
background-image: url(obrazki/tlo.png) ;
/* pozycja obrazka w pionie i poziomie */
background-position: center center;
/* co zrobic jesli ekran komputera jest wiekszy niz obrazek */
background-repeat: no-repeat;
/* co sie dzieje z obrazkiem jesli rozszerzamy okienko przegladarki */
background-attachment: fixed;
/* rozmiar obrazka */
background-size: cover;
/* kolor jaki zostanie wyswietlony pod obrazkiem czyli zanim sie pokaze w przegladarce */
background-color: #999;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment