Edit This Code:
<!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">

<h3>Difference between w3-row and w3-row-padding</h3>
<p>The w3-row class defines a padded-less container, while the w3-row-padding class adds a 8px left and right padding to each column:</p>

<p>w3-row:</p>  
<div class="w3-row">
<div class="w3-col s4">
    <img src="img_lights.jpg" style="width:100%">
  </div>
  <div class="w3-col s4">
    <img src="img_nature.jpg" style="width:100%">
  </div>
  <div class="w3-col s4">
    <img src="img_fjords.jpg" style="width:100%">
  </div>
</div>

<p>w3-row-padding:</p>  
<div class="w3-row-padding">
  <div class="w3-col s4">
    <img src="img_lights.jpg" style="width:100%">
  </div>
  <div class="w3-col s4">
    <img src="img_nature.jpg" style="width:100%">
  </div>
  <div class="w3-col s4">
    <img src="img_fjords.jpg" style="width:100%">
  </div>
</div>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy