Greetings! I have created the following code snippet:
<!DOCTYPE html>
<html>
<head>
<title>Padding</title>
<style type="text/css">
#main {
width: 400px;
height: 400px;
border: 2px black solid;
margin: auto;
}
</style>
</head>
<body>
<div id="main">
Hello World
</div>
</body>
</html>
Although, I specified a 2px border in my CSS code, upon inspection, it appears to be only 1.6px. Inspect
Despite adding additional CSS for the box, the dimensions seem to differ when inspected.