Is there a way I can structure this part using a grid layout?

The website I need assistance with

Can someone guide me on structuring this section using Bootstrap4 Grid System?

Note: Do not include the sticky navbar in the design.

I appreciate any help you all can provide :)

Answer №1

To have a good grasp of the grid system in bootstrap, it's important to understand that each row consists of 12 columns which can be easily organized. For more detailed information, you can check out: https://www.w3schools.com/bootstrap4/bootstrap_grid_basic.asp. However, your solution looks like this:

<div class="row">
  <div class="col" style="background-color:green;">main</div>
  <div class="col" style="background-color:orange;">
    <div class="col" style="background-color:orange;border: 1px solid black">
      1
    </div>
    <div class="col" style="background-color:orange;border: 1px solid black">
      2
    </div>
  </div>
  <div class="col" style="background-color:lavender">
    <div class="col" style="border: 1px solid black">
      1
    </div>
    <div class="col" style="border: 1px solid black">
      2
    </div>
  </div>
</div>

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

The close menu button is not functioning properly when clicked outside the menu - the buttonevent.matches is not recognized as a

I am encountering an issue with the dropdown menu that is not closing when clicking outside of the menu button. Despite having faced this problem before, I can't seem to find a solution now. Any help would be greatly appreciated as I am uncertain why ...

The hover effects cease before the cursor is even shifted

Can someone explain why the hover effect stops before the mouse is moved off the element? I implemented the hover effect on a before pseudo element. ...

Looking for assistance with text alignment?

23 Years Young From: The Boogie Down Bronx Heritage: Puerto Rican Pride Trade: Master Tailor For a demonstration, click on this link ...

image in the background following the header

Live Example: http://jsbin.com/opokev/54 I am currently trying to set this image as the background image while also including a header, but as you can see in the demo, the header is overlapping the image. Is there a way I can rearrange this so that the h ...

Can you explain the significance of using `!important` in CSS without specifying a value?

Scenario: Currently, I am facing an issue with using the bootstrap 4 stylesheet in conjunction with NextJS. The bootstrap 4 stylesheet, compiled from SASS, contains code like: .checkbox.checkbox-accent > span { border-width: !important; } This speci ...

Position the text so that it is aligned below and to the right of the text box

I'm currently working on a project in ASP.NET that involves a resizable textbox with a character limit display positioned below and to the right of the box. The challenge I am facing is ensuring this text remains properly aligned as the size of the te ...

Can an element contain two different classes at the same time?

Apologies if the title was unclear. I am trying to customize the color of my font awesome social media icons individually. Although I have successfully changed the color for all of them, that is not the desired outcome. Here is the icon: <i class=& ...

Is there a way to keep a section of an animated class in place?

My website features an animated retractable menu bar with two separate menus. Clicking on one icon activates a sliding motion to reveal that particular menu while causing the second menu to retract in a similar fashion. To achieve a smooth transition effec ...

Dynamically adjusting the width of an HTML element with ng-style using percentage values in AngularJS

I am facing a challenge where I need to display a progress bar in my UI based on a percentage value stored in a JSON response object. Here is an example of the JSON object: { completionPercent: 42 } The desired UI outcome should look like this: ┌ ...

Experiencing issues with content rendering in a Cordova iOS app when utilizing the CSS property -webkit-overflow-scrolling: touch

Encountering a rendering problem in a Cordova iOS app with the CSS property -webkit-overflow-scrolling: touch. I have already included this property in the config.xml file. ...

Tips for expanding a fabric canvas to match the entire width of its parent division

specific scenario I have a cloth canvas placed inside a main section. How can I expand the canvas to cover the entire width and height of its container? Here is what my current code looks like: <div class="design_editor_div"> &l ...

Customize your drop zone with React-dropzone styling

Hello! I am currently learning about reactjs and experimenting with creating a component that utilizes the functionality of react-dropzone. I have a question regarding how to customize the drop area's styling by overriding the default settings. At t ...

Issue with Flat-UI: Navigation bar is not collapsing correctly. Need help to resolve this problem

I am currently utilizing the most recent Twitter Bootstrap along with Flat UI. I have been trying to create a basic navbar that collapses when the screen size is reduced. How can I resolve this issue? This is how it currently appears: My navigation items ...

Step-by-step guide on creating a half-circle outline without filling in the shape

Can someone show me how to create a design like this using CSS? ...

Struggling to adjust the width of a DIV based on browser size and content with CSS

I'm working with a div that contains several 210x210 pixel images, and I want to adjust its margin from the left side. The goal is for the right side of the div to be just a few pixels away from the images, which will have their own margin set. Strang ...

Optimizing Dropdown Menus with the <a> or <button> Tag in Bootstrap

For our project, we have incorporated Bootstrap, which requires us to change our menu items from <a href="#" .. to <button> when using dropdowns. This is despite the fact that Bootstrap's documentation still references the use of &l ...

Ensure the HTML table automatically adjusts its size to accommodate all contents without any text wrapping

I currently have a table that spans 100% of the window width. Here is a simplified structure of the table (CSS/styles removed for clarity) <table> <tbody> <tr> <td>Row ID</td> <td> ...

The Layout of Bootstrap4 Form is Displaying Incorrectly

I'm attempting to create a basic email form similar to the one shown in the Bootstrap 4 documentation. However, I am facing an issue where the formatting is not displaying correctly. Here is what the example should look like: https://i.sstatic.net/qx ...

What is the best way to start with maximum padding when in full screen mode, and then gradually decrease to minimum padding as the browser width decreases?

Trying to adjust my padding with the formula padding-left: clamp( 60px, calc( value - value ), 186px) but struggling to resize it correctly as I reduce my browser width ...

Using Jquery to switch between different CSS styles

I'm currently working with a jQuery code that is functioning properly. $(window).load(function() { $('.menuBtn').click(function(e) { e.preventDefault(); (this.classList.contains('is-active') === true) ? this.c ...