What is the best way to create these types of Layouts in blade.php?

Check out the code snippet provided below. click here for image description

<div class="container-fluid">
        <div class="row">
            <div class="col-sm-8 col-md-8">

            </div>
            <div class="col-sm-4 col-md-4 border-left">

            </div>
        </div>
    </div>

Answer №1

IMPORTANT:

Your query may not be suitable for SO's format. It is recommended to provide a concise code snippet that you attempted, even if unsuccessful. Nevertheless, I will share my method of implementing similar layouts and let you take it from there. If you encounter any difficulties, do not hesitate to ask for help.

Stage 1

I observe two main columns separated by a vertical divider.

<div class="row">
  <section class="col-8"></section>
  <section class="col-4"></section>
</div>

Note: The implementation of the vertical line is left to your discretion.

Stage 2 (Part I)

This can be seen as a container with two sub-columns. The first column holds big-box, while the second column accommodates four small-boxes. Let's modify the code for Part I

<section class="col-8"></section>

<section class="col-8 row">
  <div class="col-6 big-box"></div>
  <div class="col-6 container-small-boxes></div>
</section>

Subsequently, populate the div with the class container-small-boxes with the small boxes.

<div class="col-6 container-small-boxes row">
  <div class="col-6 small-box"></div>
  <div class="col-6 small-box"></div>
  <div class="col-6 small-box"></div>
  <div class="col-6 small-box"></div>
</div>

The final code for Part I will appear as follows

<section class="col-8 row">
  <div class="col-6 big-box">
  </div>
  <div class="col-6 container-small-boxes row">
    <div class="col-6 small-box"></div>
    <div class="col-6 small-box"></div>
    <div class="col-6 small-box"></div>
    <div class="col-6 small-box"></div>
  </div>
</section>

There are three subsequent steps which I urge you to explore on your own.

Stage 3 (Part II)

...

Stage 4 (Implementing the code for small-box and big-box)

...

Stage 5 (Merge all code together)

...

If any issues arise, don't hesitate to leave a comment.

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

Customize the color when clicking on a mat-slide-toggle

Whenever I click on the element, a shadow appears in the color that corresponds to the element, which is currently yellow https://i.sstatic.net/21BR4.png I would like to change that shadow to be green instead, but I am unsure of how to do so. Here is my ...

What steps can I take to troubleshoot the 'Uncaught DOMException: failed to execute add on DOMTokenList' error?

I am looking to create media icons <div class="contact"> <span> <i class="fa fa-phone"></i> </span> <span> <i class="fa fa-facebook"></i> </spa ...

The mdSidenav service encounters difficulties locating a component within an Angular component

Trying to understand why an Angular .component(), which contains a <md-sidenav> directive, cannot be located from the component's controller. Angular throws the error message: No instance found for handle menu The complete component code is ...

What steps can be taken to enlarge the select button within a <select> field?

Is there a way to enlarge the size of the downward-pointing arrow button within a <select> element? Here is an example of what my code looks like: <select> <option>Select City</option> <option>City1</option> <o ...

Ensure that the Popover vanishes upon scrolling the page - Material UI (MUI) v5 compatibility with React

When implementing the MUI v5 standard pattern for displaying a popover upon hovering over another element, everything works smoothly except for one scenario: If you hover over the element And without moving the mouse, use the scroll wheel to scroll throug ...

Troubleshooting Angular: Issues with Table Data Display and Source Map Error

I'm currently tackling a challenge in my Angular application where I am unable to display data in a table. When I fetch data from a service and assign it to a "rows" variable within the ngOnInit of my component, everything seems to be working fine bas ...

Display a section of a webpage with the CSS styles hidden

I encountered an issue while attempting to print a section of my website. Despite having CSS information embedded in my HTML file, the properties are not being displayed. Do you have any solutions for this problem? var content = document.getElementById("d ...

Using AJAX to dynamically edit and update PHP data

The information displayed on my index.php page is fetched from a database using the mysqli_fetch_array function. The data is presented in a table format with fields like Name, Age, Email, and Update. An edit button allows users to modify the data. Here is ...

Ensure uniform height for all floating DIVS

Problem Description I'm facing an issue with the columns in my footer. I have a total of four columns, and I've applied the border-right property to all of them except for the last one: Due to varying content and height in each column, I am una ...

I'm encountering an error with the *ngIf directive in my Angular reactive form - any ideas on

Despite my reputation, I have a question that is causing me some confusion. I am trying to create a reactive form using an example on Stackblitz. While everything seems fine in Stackblitz and the code works correctly there, I encounter an error in VS Code ...

The proper way of aligning text in the middle of a button

I'm currently working on designing a CSS button that will be placed in the top left corner and serve as a back button to the previous page. However, I am facing challenges when it comes to centering the arrow or text perfectly in the middle of the but ...

Cordova does not support the transform property

In the process of creating an Apache Cordova app using the Ionic framework and working with Phonegap Build, I encountered a challenge. The main page of my app features rows of icons that appear like this: https://i.sstatic.net/7LE7r.png However, there is ...

Increasing a local variable in the view using ASP.NET

Despite its seeming simplicity, I'm struggling to find the solution to this problem. When adding a number (like 2) to a page variable, it's being recognized as a string and displaying: instead of 3 : 1+2 @{ var page= 1 ; } <li>@ ...

Ways to include multiple tags ahead of one tag in BeautifulSoup

Looking for a solution: I have a single tag I want to insert three a tags before it with different text. Here is what I have tried: headTag = soup.find_all('h1', text='Attendance List') aTag = soup.new_tag('a') aTag['c ...

Something is off with the CSS height property

I am facing an issue with setting the height of a div inside another div. To better illustrate my problem, here is the code snippet: .prodContent1 { position: absolute; background-color: #e1e1e1; border: 1px solid #ddd; width: 100%; box-sizi ...

Tips for displaying an error message when there is no match found in ng repeat due to filtering

I'm facing an issue with displaying an error message when no match is found after searching in a text box. I've used ng-show to display the message, but it's not working as expected. Can someone assist me with this problem? I am relatively n ...

What is preventing me from extracting HTML content from a cookie using JavaScript?

I've encountered an issue where I saved HTML code to an HTTP cookie generated through JavaScript, but when attempting to parse it using JavaScript, the code gets cut off at the first double quote. Here's an example: function loadBasket() { co ...

Inverting the colors of the image and changing the background color

I have a blend of blue and white image with a white background. When the div is clicked, I want to switch the colors around (background to blue and blue part of the image to white, white part to blue). Html : <div class="col" ng-click="onHomeButtonCli ...

A specific image is loading after being clicked in a new page

Despite my efforts to search on various platforms, I have not been able to find a comprehensive solution to my query. Scenario: I currently have a webpage containing a div with multiple images. These images load without any issues and are set to open in ...

Verify if the element is present before commencing any tasks

Looking for a solution: <div class="checkout-related-view__related-row"> <div class="checkout-related-view__related-row-cell checkout-related-view__related-row-cell--left"> <input type="checkbox" class="checkbox related-checkbox" id ...