Sélecteur CSS
Texte
.p {
font-family: "Times New Roman", Times, serif;
}
/*----------------------------------*/
.p {
font-size: 1.2em; /*--px--%--*/
}
/*----------------------------------*/
.p {
font-weight: normal;
}
/*bold-lighter-bolder-100-900*/
/*----------------------------------*/
.p {
font-style: normal; /*italic-oblique-oblique 40deg*/
}
/*----------------------------------*/
.p {
color:tomato; /*#FF6347*-rgb(255,99,71)-rgba(255,99,71,0.5)/
}
/*----------------------------------*/
.p {
text-transform:capitalize; /*uppercase-lowercase-full-width*/
}
/*----------------------------------*/
.p {
text-decoration:none; /*underline dotted
underline dotted red-green wavy underline
underline overline #FF3028*/
}
/*----------------------------------*/
.p {
text-align: left; /*-right-center-justify*/
/*----------------------------------*/
.p {
line-height:normal; /*2.5-3em-150%-32px*/
}
Appel d'une font family dans le féchier media
@font-face{
src:url("media/ulti.ttf");
font-family: "ultitypo";
}
Espacement
.div {
margin: 1em; /*10px 50px 20px 30px*/
/*margin-top_ right_bottom_left_*/
padding: 1em;
Bordures
border: solid; /*dashed red-1rem solid-
/*thick double #32a1ce-4mm ridge rgba(170, 50, 220, .6)*/
Backgroung-color
main{
background-color: grey; /*couleur de font*/
}
Backgroung-image
header{
background-image: url("../image/background.jpg");
background-position:top center;
background-repeat: no-repeat;
}
body{
background:
linear-gradient(90deg, grey 30%,pink 70%),
linear-gradient(200deg, grey, blue);
}
header{
background-image: linear-gradient(rgba(0, 0, 255, 0.5),
rgba(255, 255, 0, 0.5)),
url("../../media/examples/lizard.png");
/*degrader + image*/
header{
background-image: url("../../media/examples/lizard.png"),
url("../../media/examples/star.png");
/*deux image*/
}
Tailles
Les différentes tailles
header nav ul {
height: 300px;
}
img{
max-width: 100%;
}
/*width-min-width-max-width-
height-min-height-max-height*/
Positionnement
.img {
position: static;
}
/*relative-top-right-bottom-left-float-
display-z-index-overflow*/