Edit This Code:
See Result »
<!DOCTYPE html> <html> <title>W3.CSS</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../lib/w3.css"> <body class="w3-container"> <h2>Bordered Image</h2> <p>The w3-border class adds borders around the image.</p> <p><strong>Tip:</strong> Use any of the w3-padding classes if you want padding inside the borders:</p> <img src="img_fjords.jpg" class="w3-border w3-padding w3-padding-16" alt="Norway" style="width:50%"> </body> <!-- Mirrored from www.w3schools.com/w3css/tryit.asp?filename=tryw3css_image_border by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 13 Mar 2016 11:04:48 GMT --> </html>
Result: