The stylesheet is linked correctly. I have not done HTML/CSS in ages, however, this seems straight forward. What is not correct?
.box{
width:100px;
height:100px;
}
.box #1{
border: 1px solid red;
}
.box #2{
border: 1px solid blue;
}
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
The content of the document......
<div class = "box" id = "1"></div>
<div class = "box" id = "2"></div>
</body>
</html>