Building a Vuetify footer with perfectly centered content: A step-by-step guide

I currently have a setup where I am using the v-flex with a grid ratio of 2 / 8 / 2. This places my content in the center of the section with a width of 8, but the issue is that this centered content does not match up with the other elements on the website. Is there a different approach to achieve the same effect?

Here is the code snippet of my current implementation:

<v-footer>
    <v-container fluid>

        <v-layout >
            <v-flex md2 ></v-flex>

            <v-flex md8 >
                    My centered content...
            </v-flex>

            <v-flex md2></v-flex>
        </v-layout>

    </v-container>
</v-footer>

Answer №1

Thanks for asking! Just remember to include text-xs-center in your v-flex and it should be good to go!

<v-footer class="indigo lighten-1">
    <v-container fluid>
        <v-layout >
            <v-flex md2 ></v-flex>
            <v-flex md8  class="white--text pt-0 text-xs-center">
          Your centered content goes here...
            </v-flex>
            <v-flex md2></v-flex>
        </v-layout>
    </v-container>
</v-footer>

You can also check out the codepen demo here

Hope this solves your issue!

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What's the process for assigning a webpack ChunkName in a Vue project?

I have encountered an issue with webpack Chunk. I have already installed "@babel/plugin-syntax-dynamic-import". Below is my configuration and import() code. Despite this, only the entry index.js file is being generated in the output folder. What could I be ...

What is the best way to adjust a div's height to fill the remaining space of the viewport after the header's height

Is there a way to create a hero section that fills 100vh minus the height of the header, especially when the height of the header is not fixed? I initially used CSS with a height property set to calc(100vh - 310px), where 310px represents the height of t ...

extract information from the HTML id attribute and assign it to a PHP variable using the GET method

After reviewing numerous examples, I am still unable to retrieve the value from the ID attribute in my input element. This identifier is crucial for deleting records from the database, but my attempts with Get method have been unsuccessful. <?php ...

Can anyone provide tips on utilizing the .parent() method to generate a button that is exclusively associated with a single <div> element?

I'm working with the FullCalendar jQuery plugin and I'm attempting to create a 'weekends' button that will toggle weekends in the calendar display. The challenge I'm facing is that I have multiple calendar views on the same page, a ...

Unveiling the Quirk of Foundation 5: Grid Encounters a Popping

Recently, I encountered an issue with Foundation 5. Whenever I attempt to apply the "position:fixed" property on a "div" element that is part of the Foundation Grid, it causes the div to break out of the grid and align itself with the left edge of the ro ...

How do I make an image fill the entire space of a div using JQuery and CSS?

html: <body> <div class="custom-div"><input type="button" id="x" name="button" value="Search" onclick="showUser()" class="button"/></div> <input type="image" name="button" value="Search" onclick="showUser()" class="bu ...

``What is the best approach for specifying property types when passing props to grandchildren within a Vue.js component hierarchy

I have a Vue component named foo embedded in my HTML, and I am passing a parameter to it as shown below: <foo some="Some String"></foo> Within the foo component, I define the property type and default value in the following manner: export d ...

Guide on sending an image/file from Vue.js to Laravel 7 through axios

I'm experiencing a problem when trying to upload an image file using vue component to a laravel controller. The issue arises when I click the submit button; the phone/address is saved, but the image name does not save. data(){ return{ ...

Blank space appearing at the bottom of webpage

I have a strange issue with my document where there is a small white gap at the end. Upon inspecting the element, it seems to be related to the body. Any suggestions on how to resolve this? ...

Using AJAX in HTML to retrieve data from PHP

I am facing an issue with my HTML code: <body> <div class="po-logo"> <img src="img/logos/lw.png" alt="logo watchbees"/> </div> <form> <div class="mui-textfield mui-textfield--float-label reg-window"> <input id="u ...

What is the optimal order for executing JavaScript, jQuery, CSS, and other controls to render an HTML page efficiently?

What are some recommended strategies for optimizing webpage loading speed? What key factors should be taken into consideration? ...

Highlight the parent name in the menu when I am on the corresponding child page

Here is a snippet of a recursive function: function recursive($arrays, $out) { if (is_array($arrays)){ //$out .= "<ul>"; foreach($arrays as $parent => $data) { //if parent is empty if ($parent === '') { ...

Tips for adding a placeholder in a login form on Drupal 7

Can anyone help me set a placeholder for a horizontal login form in Drupal 7? I want the placeholder text to disappear when clicked on, and I want it to display 'username' and 'password'. Here is the current code for the form. Thank you ...

Angular JS: Grabbing Text from a Specific div and Copying it to Clipboard

I recently developed a Random Password Generator using Angular JS. Here is how the output appears in the application: <div data-ng-model="password" id="password"> <input class="form-control" data-ng-model="password" id="password" placeholder=" ...

Is there a way to disable a dropdown menu when clicking on a different one?

[![ Dashboard Admin Admin Profile Change Password Doctors Doctors List Doctors Appointments Doctors Requests Add a Doctor Patients ...

Tips for adjusting the button spacing on a bootstrap navbar

As someone who doesn't work on front-end tasks frequently, I have encountered an issue while creating a navbar using Bootstrap. The problem arises when trying to add multiple buttons as it causes the spacing between them to appear strange. Does anyon ...

Calculate averages of an array and show them when the page loads using Vue

In my coding project, there is an array named products that follows this specific structure: { "_id": "150", "name": "Milk", "description": "Skimmed", "price": "10", "ratings": [ ...

Practicing the basics of a simple 3-column layout before delving into the world of

Currently, I am working on a three column layout that appears to be functioning well on the surface. However, upon inspecting the page using developer tools, it becomes apparent that the margin of the third middle column is overlapping with the neighboring ...

methods to obfuscate a document while storing it in a different directory (vue.js)

I need assistance with obfuscating my server.js file and storing it in the dist directory within a subfolder named server. Currently, I am utilizing the CopyWebpackPlugin. new CopyWebpackPlugin([ { from: path.resolve(__dirname, '../static' ...

Problems with IE8 - Rendering correctly on all other browsers

I'm having some trouble with my website's display in IE8. It looks great in IE9, Firefox, and Chrome, but in IE8 it appears all jacked up. I'm using WordPress with Thesis Themes and editing custom.css for my changes. You can view my site he ...