octavian octavian - 3 years ago 317
CSS Question

Specify border size in CSS

I have the following fiddle with this content:


<div style="border-sizing:70px;border-color:#000000">
Bla bla


I would like this to show a black border of the size specified in
. However, that border does not appear.

Any idea what could be the cause?

Answer Source

There is no border-sizing property, you're looking for border-width. You also need to specify a border-style, which in your case is probably border-style:solid.

Updated fiddle: https://jsfiddle.net/xvy2epwg/1/

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download