Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <div id="myDiv" style="border-bottom:thick solid red">This is a div element.</div> <br> <button type="button" onclick="myFunction()">Return the width of the bottom border</button> <script> function myFunction() { alert(document.getElementById("myDiv").style.borderBottomWidth); } </script> </body> </html>