<!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>
<div class="w3-container">
<h2>Full-width Buttons</h2>
<p>A <strong>w3-btn-block</strong> button has a width of 100%, and spans the entire width of the parent element.</p>
<button class="w3-btn-block">Button</button>
<button class="w3-btn-block w3-teal">Button</button>
<button class="w3-btn-block w3-red w3-left-align">Button</button>
<p>Different width of parent elements:</p>
<div class="w3-section" style="width:30%">
<button class="w3-btn-block">Button</button>
</div>
<div class="w3-section" style="width:50%">
<button class="w3-btn-block w3-teal">Button</button>
</div>
<div class="w3-section" style="width:80%">
<button class="w3-btn-block w3-red w3-right-align">Button</button>
</div>
</div>
</body>
</html>