Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> div { width: 320px; padding: 10px; border: 5px solid gray; margin: 0; } </style> </head> <body> <img src="klematis4_big.jpg" width="350" height="263" alt="Klematis"> <div>The picture above is 350px wide. The total width of this element is also 350px.</div> </body> <!-- Mirrored from www.w3schools.com/css/tryit.asp?filename=trycss_boxmodel_width by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:23:15 GMT --> </html>
Result:
Try it Yourself - © w3schools.com