En ce moment :Genshin Impact, Valhalla, Breath of the wild, Animal Crossing, GTA 5, Red dead 2
PCPS5Xbox SeriesSwitch 2
Liste des sujets
[CSS] Background
greensheep29
Niveau 9
13 novembre 2006 à 19:43:55
Salut tout le monde ! j´ai un problème en CSS (eh oui ), comment faire pour qu´un background se répète ? Merci beaucoup !
Lockheart
Niveau 10
13 novembre 2006 à 19:46:28
background-repeat:repeat-x; ou background-repeat:repeat-y;
Dans le Body de ton css
deepblue
Niveau 16
13 novembre 2006 à 19:50:35
Un background est repété par defaut ! Donc aucune specfification a mettre dans le css
Yling
Niveau 10
13 novembre 2006 à 20:06:28
Oui, mais pour qu´il se répete dans les deux sens, c´est background-repeat:repeat;
deepblue
Niveau 16
13 novembre 2006 à 20:36:59
"Un background est repété par defaut ! Donc aucune specfification a mettre dans le css "
darth-bane
Niveau 10
14 novembre 2006 à 00:45:56
background-repeat peut prendre les valeurs suivantes : repeat (par défaut) repeat-x repeat-y no-repeat
Pour info on peut résumer les lignes suivantes background-color: #012345; background-image: url(monimage.png); background-repeat: repeat-x; background-attachment: fixed; background-position: 30px 20%; par une seule ligne : background: #12345 url(monimage.png) repeat-x fixed 30px 20%;