Vue Answers

How to fix all columns are on one line with Vue Bulma?

Spread the love

If you’re using Vue.js with the Bulma CSS framework and you find that all columns are displaying on one line, it’s likely because you haven’t wrapped your columns in a .columns container.

In Bulma, columns should be wrapped within a .columns container to properly align them.

For instance we write

    <div class="columns">
      <div class="column">
        <!-- Content for the first column -->
      <div class="column">
        <!-- Content for the second column -->
      <!-- Add more columns as needed -->

export default {
  // Your Vue component logic

<style lang="scss" scoped>
/* Add any custom styles here */

In this example we wrap our columns within a div with the class .columns.

Each column is wrapped within a div with the class .column.

Ensure that you have properly included the Bulma CSS in your project for the column layout to work correctly. You can include it via a CDN link, npm package, or any other method as per your project setup.

Make sure to replace the placeholder content in the columns with your actual content. This structure should ensure that your columns display correctly and are not all on one line.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *