Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Titre du document</title> <style> body { background: #ccc; font-size: 20px; text-align: center; } main div { display: flex; align-items: center; justify-content: center; color: black; padding-top: 30px; padding-bottom: 30px; width: 200px; height: 100px; margin: 15px; font-weight: bold; border: solid; } .flex-center { display: flex; justify-content: center; } /* border-right-width example classes */ .b1 {border-right-width: medium;} .b2 {border-right-width: thin;} .b3 {border-right-width: thick;} .b4 {border-right-width: 10px;} .b5 {border-right-width: initial;} .b6 {border-right-width: inherit;} </style> </head> <body> <h2>Exemple des valeurs de border-right-width</h2> <main class="flex-center"> <div class="b1"> medium </div> <div class="b2"> thin </div> <div class="b3"> thick </div> </main> <main class="flex-center"> <div class="b4"> 10px lenght </div> <div class="b5"> initial </div> <div class="b6"> inherit </div> </main> </div> </main> </body> </html>