Leave the div alone and add borders to the thing within the div. Such as, if the div contains an image, add a border to the contained image. Or, if the div contains a paragraph, add a border to the contained paragraph. Or, if the div contains a *bunch* of stuff, then place a div *within* the div (!) and place a border around the *inner* div. (It's called a box-within-a-box, or an out-side-in-box: a classic method of structuring so as to maintain integrity of the outer box's measurement.)