Why does this not work.
<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="style.css"/>
<title>Placeholder</title>
</head>
<body>
<div id="main1">
<p>Test</p>
</div>
</body>
</html>
body
{
background: lightgray;
font-size: small;
font-family: verdana, arial, helvetica, sans-serif;
margin: 0px;
padding-left: 100px;
padding-right: 100px;
}
#main1
{
width = 200px;
align-self: center;
background-color: white;
padding: 100px;
margin: 0px;
}
When I open this up in a web browser, the div with the id "main1" is not affected at all by the stylesheet, but the background is.
The answer is probably really obvious, but I can't figure it out.