CSS Outside Border

I think you’ve got your understanding of the two properties off a little. Border affects the outside edge of the element, making the element different in size. Outline will not change the size or position of the element (takes up no space) and goes outside the border. From your description you want to use the … Read more

How to set a border for an HTML div tag

Try being explicit about all the border properties. For example: See Border shorthand property. Although the other bits are optional some browsers don’t set the width or colour to a default you’d expect. In your case I’d bet that it’s the width that’s zero unless specified.