javascript change border width code example Example: border width css .element { border-width: 2px; }