Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="4/w3.css">
<body>
<div class="w3-container">
  <h2>Button Bars</h2>
  <p>Two button groups on the same line (if enough space):</p>
  <div class="w3-show-inline-block">
  <div class="w3-bar">
    <button class="w3-button w3-black">Button</button>
    <button class="w3-button w3-teal">Button</button>
    <button class="w3-button w3-red">Button</button>
  </div>
  </div>
  <div class="w3-show-inline-block">
  <div class="w3-bar">
    <button class="w3-button w3-black">Button</button>
    <button class="w3-button w3-teal">Button</button>
    <button class="w3-button w3-red">Button</button>
  </div>
  </div>
  <p>Two button groups on the same line (if enough space):</p>
  <div class="w3-show-inline-block">
  <div class="w3-bar">
    <button class="w3-bar-item w3-button w3-black">Button</button>
    <button class="w3-bar-item w3-button w3-teal">Button</button>
    <button class="w3-bar-item w3-button w3-red">Button</button>
  </div>
  </div>
  <div class="w3-show-inline-block">
  <div class="w3-bar">
    <button class="w3-bar-item w3-button w3-black">Button</button>
    <button class="w3-bar-item w3-button w3-teal">Button</button>
    <button class="w3-bar-item w3-button w3-red">Button</button>
  </div>
  </div>
</div>
</body>
<!-- Mirrored from www.w3schools.com/w3css/tryit.asp?filename=tryw3css_buttons_bar_inline by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 16:50:35 GMT -->
</html>