Can i Border wrap ? i forgot how to

I’m trying to figure out how to make a border closely wrap its element, I have done it before but seem to forget every time I’m in the middle of my technical document project, and my code element is the one I’m trying to closely wrap i think i could do it with CSS grid but that would be a lot of work for something that could have a simple answer.
here is my project currently.

You mean the border property ?
Ex: border: 1px solid grey;
1px -> shorthand to apply 1px of border-width to all the side ( top, right, bottom and left )