Book Image

Creating Interfaces with Bulma

By : Jeremy Thomas, Oleksii Potiekhin, Mikko Lauhakari, Aslam Shah, Dave Berning
Book Image

Creating Interfaces with Bulma

By: Jeremy Thomas, Oleksii Potiekhin, Mikko Lauhakari, Aslam Shah, Dave Berning

Overview of this book

Bulma is a lightweight configurable CSS framework that handles all the hard work of Flexbox for you. Bulma makes creating web interfaces an easy and interesting job. This book begins with an overview of the basics of Bulma ? its terms and its concepts. Then, while designing a login page for your application, you’ll learn how to use the various tools provided by Bulma to create HTML forms and control their layout and flow. In the later chapters, you’ll design an admin area for your application, thus learning to use Bulma’s navigation and menu components. You will also add the components to your user interface for common things such as boxes, lists, and media groups, and then create pagination. As you progress through the book, you’ll create and layout some other components for your interface, including tables, design dropdown lists, and finally to integrate your web application with JavaScript. By the end of this book, you’ll be able to use the features of Bulma to your advantage and build web interfaces quickly and easily.
Table of Contents (15 chapters)
8
8. Creating more tables and selecting dropdowns

The main section

All of the admin pages are going to be split in two columns. The left column will contain the sidebar menu that will be common across all pages, while the right column’s content will be specific to the current page.

Following the navbar, you can use Bulma’s section element to wrap your main content:

<section class="section">
  <!-- The main content of the page -->
</section>

This provides the main content of the page some space, preventing it from reaching the edges of the viewport. You can now define your two-column layout.

Within this section, add the following:

<div class="columns">
  <div class="column is-4-tablet is-3-desktop is-2-widescreen">
    <!-- The sidebar -->
  </div>
  <div class="column">
    <!-- The right part, specific to each page -->
  </div>
</div>

Just like the login page, the first column will have a different size for each...