My CSS border rule is causing a problem. I'm using Visual Studio Code to style my HTML page with a stylesheet, and the issue arises when trying to create borders around 'div' elements - it's wrapping the entire page in a border instead. view image here Can anyone provide guidance on how to properly apply a border only to the 'div' element, excluding the rest of the page?
Thanks in advance.view image here
I attempted directly adding the rule to the element rather than the .css file, but the formatting remains incorrect.