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-top-width example classes */ .b1 {border-top-width: medium;} .b2 {border-top-width: thin;} .b3 {border-top-width: thick;} .b4 {border-top-width: 10px;} .b5 {border-top-width: initial;} .b6 {border-top-width: inherit;} </style> </head> <body> <h2>Exemples des valeurs border-top-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>