Struggling to create a dynamic design for a nested column using bootstrap

After creating a layout in Figma, I have set up a grid structure as follows:

<div class="container-fluid"> 
  <div class="row" id="sobre-nos-wrapper">
      <div class="col">
        <div class="row">
          <div class="col">
            <h1>Title</h1>
          </div>
        </div>
      </div>
      <div class="col">
        <div class="row">
          <div class="col">
            <p>
              Text 1
            </p>
          </div>
          <div class="col">
            <p>
             Text 2
            </p>
          </div>
          <div class="col">
            <p>
             text 3
            </p>
          </div>
          <div class="col-sm-12 col-md-4">
            <img class ="" src="" alt="">
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

For different screen sizes, I want the layout to be displayed differently. For XL and LG screens (>= 992px), I want the design to show in one viewport. For MD screens (>= 678px), only the text should be displayed in one whole viewport. And for SM and XS screens (>= 576px), each element should be shown separately in entire viewports (title, paragraphs, and picture). Any tips or advice on how to achieve this would be highly appreciated! Feel free to ask if you need more information.

Answer №1

Just took a shot at it. Hopefully, this gives you a starting point:

<div class="container-fluid"> 
         <div class="row" id="sobre-nos-wrapper">
             <div class="row">
                 <div class="col-sm-12">
                    <h1>Main Title</h1>
                 </div>
             </div>
             <div class="row">
            <div class="col-md-3">
                <p>Content 1</p>
          </div>
          <div class="col-md-3">
            <p>Content 2</p>
          </div>
          <div class="col-md-3">
            <p>Content 3</p>
          </div>
          <div class="col-sm-12 col-md-3">
            <img class ="" src="" alt="">image
          </div>
        </div>
    </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

What method can I use to replace the status bar from the top?

Is there a way to smoothly slide in and out a <View/> on React Native iOS, similar to the animation sequences shown in the images below? ...

What steps can I take to stop my Details element from moving a nearby Div?

Within this setup, there is a div containing Details and Summaries to the left. Upon expanding the details, the text enlarges and the container moves, causing the image in the right div to shift downward. Is there a way to prevent this from happening? I ...

Adding a new row to a Bootstrap table while maintaining the consistent style

Is there a way to dynamically add a new table row with different styling using jQuery? I'm facing this particular issue and need help in solving it. Below, I have included some screenshots of my code and the view for better understanding. Here is the ...

Achieving a Side-Along Sidebar with CSS, Fully Embracing

I'm encountering an issue with achieving 100% height using CSS. Despite my extensive search for tutorials and solutions, I haven't been able to achieve the desired results. My layout consists of a sidebar and a main column where the content will ...

The magic of CSS's 3D Transformation feature

Currently, I am working on a 'Flip' effect using the CSS3 transform Property. While everything seems to be functioning properly in recent versions of Chrome, Firefox, and Safari, I'm facing challenges when it comes to creating a fallback fo ...

Is it possible to manipulate elements within an overflow container using JavaScript/jQuery when using the HTML style "overflow:hidden"?

My <div> has a styling of style="overflow:hidden" and the size of the <body> is fixed, intended as a multi-screen display without a user interface. Is there a method to access these "invisible" elements to identify the first one that exceeds t ...

Generating values in a loop - mastering the art of creating data points

My goal is to create a variable within a loop: box-shadow: 835px 1456px #FFF, 1272px 796px #FFF, 574px 1357px #FFFand so on... The concept is simple: box-shadow: x1 y1 #fff, x2 y2 #fff, x3 y3 #fff, x4 y4 #fff ... xn yn #fff. I attempted to achieve this ...

The problem with grunt-uncss is that it mistakenly deletes dynamically added classes

Today I delved into the world of Node.js and created a simple Hello, World app. I also dabbled in using grunt for automating builds and deployments. For my project, I decided to incorporate the Bootstrap framework along with colors.css. <div class="he ...

struggling to get the basic .gif loader to function properly

I recently designed a website with multiple images on certain pages, and I wanted to incorporate a loading gif that shows up in a specific div (#carousel) while the images load. I found a super simple guide on a website that I attempted to follow, but unfo ...

JS will reach its stopping point at the specified style.zIndex

I am currently in the process of setting up button elements. I have two scripts that correspond to different types of buttons - one script runs a simple collapse menu, while the other executes a more complex collapse by shifting depths and sliding one div ...

Issues arise when trying to alter the attributes of the :hover pseudo-class

I'm having trouble changing the background-color of list items to black when hovering over them. However, changing the color itself is working fine. .nav li { display: inline-block; height: 100%; padding: 0px 35px; border-width: 0 1px 1px 0 ...

Repositioning the final row to the bottom of the container in Bootstrap 4

I am working on a simple footer design that includes contact information in three rows. The first two rows should appear at the top, while the last row needs to be positioned at the very bottom of the container. To achieve this layout, I decided to use abs ...

Retrieving fresh CSS data from earlier animated elements within a Greensock timeline

In my code, I am using a TimelineLite() to perform a series of sequential tweens with .to(). What I want to achieve is accessing the output value from one of the early tweens in order to use it for constructing later tweens. Is there any way to retrieve t ...

What is the best way to distribute stroke width evenly on a rounded hexagon in an SVG?

I created a rounded hexagon with stroke width, but the top and bottom curves appear darker. Does anyone know how to evenly distribute the stroke width along the border? Here is my SVG code: <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewbox ...

How about wrapping a large amount of text three times and including a "read more" link?

I am tasked with creating an HTML element that automatically detects when text has wrapped three times, truncates the content, and adds a "more..." link at the end of the third line. Can this be achieved? If yes, what is the process to implement it? ...

Is it possible to toggle between thumbnails and a larger image in a jQuery gallery?

Hello, I am new to website development and I would like to create a jquery based photo gallery for my personal website. One feature that really catches my eye is this one (for example): The gallery has a large thumbnail grid where you can click on a thumb ...

jquery mobile integrated seamlessly between image1 and image2

One issue I'm facing with jquery.mobile is that there seems to be a gap between photo1 and photo2 when displayed on my mobile device. Any suggestions on how to eliminate this space and have the images appear seamlessly next to each other? Thank you in ...

What steps should I follow to ensure that the "-> comes after the text?

Here is the link to my page: . Currently, the arrow appears under the text. I am looking for a way to rearrange it so that the arrow comes after the text while still maintaining its hover effect. Can you provide any suggestions? ...

Achieving full width for the elements in a row with Flexbox: A step-by-step guide

I am dealing with a flexbox grid that contains random width images: https://i.stack.imgur.com/pfPeU.jpg I want to stretch the elements in each row to full width to eliminate any white space - Is there a way to achieve this using CSS? justify-content do ...

A step-by-step guide on making an animation series with html and css keyframes

I've been working on creating a captivating animation using HTML and CSS keyframes, but I seem to have hit a roadblock. Despite trying different rotations and transforms, I can't seem to achieve the desired effect depicted in the image below. The ...