CSS - Centrage

Page 17

#block_1 {
    width: 50%;
    height: 50px;
    margin: auto;
}

#block_2 {
    width: 50%;
    height: 50px;
    text-align: center;
}

#block_3 {
    width: 50%;
    height: 50px;
    text-align: right;
}

#block_4 {
    width: 50%;
    text-align: justify;
}
        

Bloc 1

Bloc 2

Bloc 3

Bloc 4 - Lorem ipsum dolor sit amet, consectetur adipiscing elit.