mardi 25 mai 2021

CSS border attribute adds several layers for borders

I am getting started on a simple web page but I can't get around this issue. When I run this simple Script:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Test</title>
    <style>
      div {
        border: 5px solid blue;
      }
    </style>
  </head>
  <body>
    <div>this is an element</div>
  </body>
</html>

I get the following unexpected output: image of div with multiple layers of the bottom border

Why is this happening?




Aucun commentaire:

Enregistrer un commentaire