How can I make borders around divs appear?

Hello. I hope that you are happy and well.

The nice Sitepoint book that started me on all this recommended that I have borders around all my divs while working, so I can see where things are. Which I think is a good idea and I like to do it. But some divs just refuse to display borders, and I can’t find anywhere any kind of listings of what kinds of things would prevent a border from appearing. The css in the border-showing and non-border-showing categories looks the same.

What are the things that would make this happen?

Thank you.

It would be better if you could post an example of this happening. Then we could tell you in a jiff. It sounds like an odd problem—more of a coding error.

maybe you also have a border:0 style in your css ? or border:none, something … ? Only that would prevent it from appearing. Sometimes when i want to see the exact dimension of a div i just attribue a background color to it, better than a border that increases the size of the div.