Unable to utilize the full column space provided by bootstrap

I need assistance in making three buttons span the entire width of a column.

The grid consists of 3 sections for the buttons and 9 sections for other components.

Here's a visual reference. Essentially, the buttons should take up the space highlighted in red and utilize the full column width of 3.

Below is the snippet from App.js where I have imported the component:

<div className="container-full padding-0" style={{overflow:'hidden', overflowY:'hidden'}}>
    <div className="row">
        <div className="col-sm-3" style={{borderRight:"1px solid #000"}}>
            <div className="row no-gutters mt-auto">
                <div className="col-sm-3">
                    <COMPONENT1/>
                </div>
                <div className="col-sm-9">
                    <COMPONENT2/>
                </div>
            </div>
            <COMPONENT3 store={store} style={{overflow:'hidden'}}/>
            <COMPONENT4/>
            <BUTTONS/> --------------------------> The buttons go here
       </div>
       <div className="col-sm-9" style={{paddingRight: 0, paddingLeft: 0}}>
            <COMPONENT6 = {store} style={{overflow:'hidden'}}/>
            <br/>
            <COMPONENT7/>
            <COMPONENT8 store={store} clicked={this.clicked}/>
       </div>
    </div>
</div>

Snippet for the buttons component:

<div className="row no-gutters mt-auto" style={{paddingTop:10}}>
    <div className="col-sm-4">
        <Button variant="raised" style={buttonStyle}>A</Button>
    </div>

    <div className="col-sm-4">
        <Button variant="raised" style={buttonStyle}>B</Button>   
    </div>

    <div className="col-sm-4">
        <Button variant="raised" style={buttonStyle}>C</Button>
    </div>
</div>

CSS code for styling the buttons:

const buttonStyle = {
    fontSize: 20,
    textAlign: 'center',
    display:'inline-block',
    width:'100%',
    height:100
}

UPDATE: Check out this image for a preview of the UI design

Answer №1

Why don't you give this method a try:

Add the following CSS rules to row no-gutters mt-auto:

style={{ display: 'flex', flex: 1, flexDirection: 'row' }}

I have a feeling it will do the trick!

Thank you for your time.

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

Building an efficient MongoDB, Express, and React application involves properly defining the variable name that will be stored in the database

As a beginner in coding, I often struggle with the basics. Currently, I am working on creating a URL-Shortener using Express and MongoDB, along with React for the frontend. After setting up an input field and a submit button, I can successfully send the ...

Order objects in a JavaScript array

Recently, I came across a list of student data fetched from an API: const Studentdata = { "StudentName1": { "active": true, "gender": "male" }, "StudentName2": { "active": false, "gender": "male" }, "S ...

Adjust the panel size accordingly for smaller screens

My application is utilizing the Spotify API to retrieve names and images. These are then displayed on my webpage within cards/panels in the following format: <div class="col-md-4" v-if="type == 'tracks'" v-for="(track, index) in tracks"> ...

Prevent the onclick function of a span element from being triggered when the user clicks on a dropdown menu contained within

Just delving into the world of web development and currently tackling a React project. Encountered an issue where I need to make a span element clickable. However, there's a dropdown within that span that doesn't have any onClick event attached t ...

Echoing PHP code is being output as HTML comments

I recently encountered a strange issue while working with some PHP code in a file: <?php include_once('includes/connection.php'); include_once('includes/article.php'); $article = new Article; $articles = $artic ...

Sliding out menu using AngularJS

I have been attempting to create a slide out menu without success. My goal is for the text (home,users) to appear when the >> button is clicked. I seem to be stuck and can't figure out what I'm missing. This project also marks my initial ve ...

Revamp the way values are shown in the modal of material-ui-pickers for a fresh look

Is there a way to format dates in German as "Fr.,17. Mai"? For an example, you can check out the sandbox demo here ...

Having trouble with React's Material-UI IconMenu testing - Simulate.click is not functioning as expected

Having trouble with the simulate.click function when testing a react component using material-ui and 'react-addons-test-utils'. Specifically, I can't seem to get it to work for the IconMenu and unsure where the issue lies. The goal is to sim ...

What is the best way to choose an HTML element based on the attributes of its child nodes in CSS?

Take this scenario for instance: <tr> <td align="center">123</td> <td class="someclass">abc</td> </tr> My goal is to target all <tr> elements that contain a <td> with the class attribute set to someclass. ...

Struggling to grasp the concept of Vue3 style binding

While browsing the Vue website, I came across a particular example that left me puzzled. Inside the <script> section, there is this code: const color = ref('green') function toggleColor() { color.value = color.value === 'green' ...

Align the dimensions of the table to match with the background image in a proportional

Seeking a contemporary method to match a table with a background image, ensuring all content scales proportionally. Mobile visibility is not a concern for this specific project. Using Wordpress with a starter bootstrap theme. Check out the code on jsfidd ...

Creating a capsule-shaped button using HTML and CSS:

I'm trying to create a button that mimics the design in the code snippet. Is this method the most effective way, or is there a simpler approach I should consider? It seems like a lot of work just to achieve rounded corners. #p1,#p2{ height:25px; ...

What is the best way to display an entire string in a DataGridPro cell without truncating it with an ellipsis?

After reviewing all of the available DataGrid documentation, I am still unable to find a solution for displaying strings in multiple lines within a cell without ellipses. The current behavior is as follows: https://i.stack.imgur.com/TO8vB.png What I am a ...

Implementing user-driven filtering in a React table

When a user clicks on the submit button, data will be loaded. If no filter is applied, all data will be displayed. const submit = async (e: SyntheticEvent) => { e.preventDefault(); const param = { ...(certificateNo && ...

Looking for an Angular Material component that displays a list of attributes?

I am trying to create a dynamic list of properties in Angular using Material Design that adjusts for different screen sizes. For example, something similar to this design: https://i.stack.imgur.com/EUsmV.png If the screen size decreases, the labels shou ...

Updating URL without triggering a re-render in React Router

I'm currently working on a project where I need to modify the page URL without triggering a re-render. Within the componentDidMount lifecycle method, I am fetching all pages using the following code snippet: componentDidMount() { axios.get(&a ...

Updating the .css file through the graphical user interface, within the managed bean

I have created a jsf page with colorpickers to allow an administrator to modify the main theme of the site, which consists of 4 colors. I have prefixed my main colors in the css file with numbers like this: .element{ background: /*1*/#333333; } When ...

Customizing background images for individual web pages

Having some trouble changing the background image on my Squarespace website homepage. After exploring forums and inspecting my website's source code, I tried using the id #collection-51648018e4b0d7daf0a7cece to target just the homepage background but ...

The Scrapy CSS selector is not fetching any prices from the list

Having trouble with the price CSS-selector while scraping an interactive website using Scrapy. Check out the HTML screenshot I captured: https://i.stack.imgur.com/oxULz.png Here are a few selectors that I've already experimented with: price = respon ...

What is the best way to modify a React ref when the child elements of ref.current are altered?

I'm currently utilizing React refs for managing click events outside of an element. import { useEffect } from 'react'; export const useClickOutside = (ref, callback = () => {}) => { const handleClick = e => { if (ref.current ...