How can I ensure that my columnar div box is responsive on smaller devices with CSS or should I consider using Bootstrap?

I have a container with a row that contains multiple div boxes. Currently, I am using CSS to spread these div boxes into 3 columns using the column-count property.
I have a few questions:

1) How can I make this responsive for smaller devices?

2) Can I use bootstrap to achieve my desired layout?

3) Is there a more efficient or better way to accomplish this task?

Answer №1

It seems like you're seeking some information:

<article>
    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-4">
                <h2 class="text-center">Location</h2>
                <hr />
                <p>
                    Discover the town of Corby in Northamptonshire, strategically situated 14.5km (9 miles) north of the A14 which connects the M1 and A1 highways.
                    Easy access to major UK cities like Manchester, Leeds, Bristol, and London within a three-hour drive, making it an ideal location for businesses.
                </p>
                <p> 
                    With a rapidly growing population and thriving economy, Corby is attracting significant investment and development opportunities.
                </p>
                <p>
                    Boasting a population of 87,000 (2009 census), with projections indicating growth up to 92,000 by 2014, Corby's industrial sector has attracted renowned companies in various sectors.
                </p>
            </div> <!-- /col-sm-4 -->
            <div class="col-sm-4">
                <h2 class="text-center">Communications</h2>
                <hr />
                <p>
                    Experience seamless road connectivity in Corby with well-established routes like the A6, A43, and A14, providing links to nearby towns and motorways.
                </p>
                <p>
                    The new Corby station offers convenient rail connections to London St Pancras, enhancing transportation options for residents and businesses alike.
                </p>
                <h2 class="text-center">Map</h2>
                <hr />
                <img id="corbymap" src="\img/location/corbymap.jpg" />
            </div> <!-- /col-sm-4 -->
            <div class="col-sm-4">
                <h2 class="text-center">Situation</h2>
                <hr />
                <p>
                    Explore the favorable location of this property on the northern edge of Willowbrook East Industrial Estate just 3.5km (2.2 miles) from Corby town center.
                </p>
                <p>
                    Convenient access to main roads leading to key areas like A6116 Steel Road, A43, and A1 makes this property strategically positioned for business growth.
                </p>
                <p>
                    The newly developed Corby railway station is in close proximity, further enhancing the area's commercial potential.
                </p>
                <p>
                    Adjacent to Rockingham Motor Speedway, this property is part of a comprehensive development plan aimed at creating a vibrant employment hub centered around the circuit.
                </p>
                <p>
                    Nearby Priors Hall, a massive ongoing development encompassing housing, schools, parkland, and job creation initiatives, signifies promising future prospects for the region.
                </p>
            </div> <!-- /col-sm-4 -->
        </div><!-- /row -->
    </div><!-- /container-fluid -->
</article>

Utilizing Bootstrap 4 foundation, you can delve into more details starting here. Best of luck!

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

Mastering CSS selectors with jQuery

My desire to delve into the world of jQuery has ignited. From my perspective, jQuery simply selects the desired element and performs actions on it. However, I find the selection process closely resembling CSS selectors, a realm with which I am not well-ver ...

Using jQuery to apply CSS to elements with multiple potential values

Here's a simple question: using jQuery's css function, you can retrieve the computed style of a CSS attribute. But what if there are multiple styles for that attribute being rendered simultaneously? Let's consider this example: <div id=" ...

Create functionality for editing and reviewing content within an HTML webpage

Looking to add edit and review modes to my webpage. In edit mode, users can drag and drop divs to different locations or resize them. Once changes are made, users may want to review their work. I have included a link for the user to switch to review mode ...

What is the best way to arrange the second div in the second row, while the first and third div are displayed on the first row within the MUI appbar

I have 3 components in the appbar, 1. Logo 2. Search Input 3. Login Buttons When viewing on desktop, all three components will be in a single row as shown below https://i.stack.imgur.com/FYMEH.png Below is my code snippet: export default function NavBar ...

I'm curious if there's a method to ensure that the content within a mat-card stays responsive

So I'm working with this mat-card: <mat-card> <mat-card-content> <div *ngFor="let siteSource of siteSources | paginate: { itemsPerPage: 5, currentPage: page};"> <site-details [site]='siteSource'></s ...

Why is the defaultDate property not functioning properly in Material-UI's <DatePicker/> component with ReactJS?

I recently implemented the <DatePicker/> component from Material-UI ( http://www.material-ui.com/#/components/date-picker ) in my project. I encountered an issue while trying to set the defaultDate property to the current date on my computer, as it r ...

how to obtain the lineHeight property in UITextView

I am trying to calculate the line height in UITextView for my app. I have used the sizeWithFont:constrainedToSize:lineBreakMode: method, but it seems to give me the height of all lines in the textview. I heard about the Three20 library, but I am not sure h ...

Guide to adjusting icon placement on top of an image using Bootstrap 4

Is there a way to overlay an icon on top of an image? .item { position: relative; } .des { color: #fff; text-align: left; } <div class="card"> <div class="item"> <img class="card-img-top" src="images/g33.jpg" alt="Avata ...

Carousel position images off-center to the right on smaller screens

I created a fullscreen slider using the carousel bootstrap feature. However, when the screen size shrinks, the background image resizes and centers itself. Instead of centering the image on smaller screens, I want it to focus on the right side. Here is ho ...

GridView alignment problem when content is compressed without spacing

This situation presents a challenge SLNo FirstName LastName Description 1 AA BB lengthy description of the scenario more details about the scenario 2 CC BB another detailed description of ...

Can elements be prevented from resizing in relation to another element without using position:absolute?

Is there a way to prevent elements in a <div> from moving when an adjacent element is resized, without using position:absolute? Any help would be greatly appreciated. Thank you in advance! ...

The characters 'AE' seem to merge into a single character when viewed in Safari

I created a landing page at When I view this page in a web browser, the H1 heading displays correctly: https://i.sstatic.net/D8kC3.png However, when I view it on Safari on iOS or OSX, the H1 heading shows the AE characters as one combined character: ht ...

"Incorporating text input from a textbox into a <ul> list

Recently I started a new project which involves adding user-entered text from a textbox into a ul list in Bootstrap. The script for this functionality is placed within the head section of my HTML document. <script type="text/javascript"> fun ...

Locate a specific tag based on its content using Scrapy

What is the best way to locate a tag based on its content? My current method works well for finding elements, but it can be unreliable due to varying page structures. yield { ... 'Education': response.css('.provider- ...

Using Bootstrap to showcase material on the right side of the webpage in a block format

Is there a way to position the contents of the right-info div vertically at the right end of my Bootstrap 4 page? I've experimented with the following code snippets: <div class="row right-info flex-column justify-content-end"> <div ...

Modify the appearance of certain text within an input field

I need some help adding style to specific text within an input field. For example, if the user types in "Hello world" and the special text is "world" I want to achieve this result: https://i.sstatic.net/Ozd6n.png This is what my HTML code looks like: & ...

Attempting to invoke the get method following the post method within a Django class-based view

After creating a classview for uploading files to azure blobstorage, displaying a table of uploaded file history, and enabling display on the page, I encountered an issue. The problem arises when a file is uploaded using the POST method but not executed by ...

I'm having trouble pinpointing the origin of the gap at the top of my website, even after thoroughly reviewing all my tags

After setting margins and padding of 0 for both html and body, all my top-level elements inherited the same styling. I'm hoping to avoid using a hacky solution like adjusting the positioning. Any tips on how to achieve this without resorting to hacks ...

Display the element once the class enters the viewport

I am attempting to display a div only when certain elements with a specific class are visible in the viewport. I made progress with this example: http://jsfiddle.net/blowsie/M2RzU/ $(document).ready(function(){ $('.myclass').bind('inv ...

css: varying container heights for columns in Chrome and Safari using Bootstrap 4

In my code snippet below (this is just a prototype, in the actual application everything is different but follows a similar structure): <body> <div class="row"> <div class="col-3 d-none d-sm-block"> <div class="h-1 ...