I'm trying to create a box around specific html elements, but the current code is causing each element to be enclosed individually. I don't want to use the html or body element as I have other elements that need to remain outside of the box.
h1, p {
width: 300px;
padding: 50px;
border: 20px solid #0088dd;
text-align: center;}
</style>
</head>
<body>
<p>this content should be inside the box</p>
<h1>this content should be inside the box</h1>
<h2> this content should not be inside the box</h2>