How can I create a grid layout in Bootstrap using columns of sizes 1.5, 8.5, and 2?

Currently working with the bootstrap grid system and facing a dilemma - col-sm-1 is too small, while col-sm-2 is too big for my needs. Is there a way to create something in between like col-sm-1.5 without causing the entire bootstrap grid to collapse?

Answer №1

Expanding Bootstrap's grid system to accommodate fractions like col-md-1.5 is not a built-in feature. One way to achieve this functionality is by using custom solutions available online, such as the 7-column example described in this link or by utilizing nested rows, as demonstrated in this Bootply demo.

Reference: SOURCE

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

adjusting the position of a dynamic JavaScript panel

When trying to make a box slide in from the bottom instead of the top left, I encountered some issues with the code. After altering the CSS position and changing the code that adjusts the position, the sliding effect stopped working. It seems like there mi ...

optimal method of storing and retrieving an array in a database

I have a set of HTML inputs that can be regenerated using JavaScript to allow users to input their experience history. Let's assume this code is generated twice like the following: <!-- User Experience 1 --> <label>Company Name</label& ...

What steps are needed to transform an HTML string into functional HTML code that will be visible on the front end of a website?

When using a v-for loop to iterate through items, the {{ item.data }} contains HTML elements with defined values. For example: The value of {{ item.data }} is a string "<'qr-code value="this has specific infos that is already created for this spec ...

Incorporate a JSON file into the body of an HTML document

I'm experiencing an issue with loading a Json file into the html body using the script tag, as illustrated below. Here is a sample of the html file: <html> <head></head> <body> <div id="category"></div> <scrip ...

Exploring the world of CSS and designing layouts using multiple div elements

Upon reviewing this website, I must admit it is getting close to what I envision. However, being a perfectionist and new to HTML and CSS, I find myself struggling to achieve the desired outcome. The layout consists of two divs named topred and top yellow, ...

Responsive Text in HTML Email Depending on Device

I currently have an email template that is functioning perfectly, but I am looking to take it to the next level. The top navigation of the email consists of 4 columns of text. To ensure that it appears well on both desktop and mobile devices, the font size ...

Is there a way to verify the percentages and margins in this HTML code?

On the lower half of the page, I have three divs named (vd-grid-sub-box). I am attempting to equalize the gaps between each of these three divs. Currently, there is a larger gap between the 2nd and 3rd div compared to the 1st and 2nd. However, every time ...

Will HTML eventually include a syntax for image spriting?

My knowledge of the latest CSS updates is a bit outdated, so I thought it was worth inquiring; The <img> tag is typically written as <img src="/url.png" />, with auto or specified height and width. While I appreciate CSS sprites for their fast ...

Switch from manipulating the DOM to using Angular binding to update the td element with fresh information

When I click the edit button on a tr Element, the tdElement for the redirectUrl should become editable. By using the id of the tdElement and changing the contenteditable attribute to true, I can then use JQuery to retrieve the newly typed data. <tr ng- ...

Using `encodeURIComponent` to encode a URL does not function properly when used with a form action

After experimenting with the encodeURI function in conjunction with a form, I discovered an interesting behavior. I used encodeURI to encode a URL. <html> <head> </head> <body> <form id="form"> </form> <button id="bu ...

HTML file unable to connect with CSS stylesheet

I'm facing an issue where my CSS stylesheet and HTML files aren't linking properly. Here is the code snippet from my HTML file: <head> <title>Website Sample</title> <meta charset="UTF-8"> <meta http-equiv= ...

What are some techniques to ensure a bookmark retains its original style even when the cursor hovers over it?

My CSS skills are limited, so I am facing what may seem like a basic issue. On my website, I have a table of contents with links structured like this: <a href="#user-interface">User interface</a> Additionally, there is a bookmark in another ...

Steps to include a horizontal divider in the footer section of an angular-material table

Is it possible to add a line between the last row (Swimsuit) and the footer line (Total)? If so, how can I achieve this using Angular 15? https://i.stack.imgur.com/581Nf.png ...

Deleting a row from a table when a similar element is found in another location

My webpage features a table list that showcases users linked to an organization: <script type="text/html" id="userListTemplate"> <div id="user_list_box"> <table class="list" style="margin-bottom: 15px;"> {{#Users} ...

Make sure to use jQuery waterfall 'reflow' only once all the images have finished loading

Currently, I am utilizing jQuery waterfall to achieve a grid-style display on my website. To address the issue of images overlapping, I have enclosed the waterfall method within a .load() function like this: $(window).load(function(){ $('#buildcon ...

Issue with grid breakpoints for medium-sized columns and grid rows not functioning as expected

I'm working on building a grid layout from scratch in Vue.js and have created my own component for it. In my gridCol.vue component, I have defined several props that are passed in App.vue. I'm struggling to set up breakpoints for different screen ...

I'm unable to adjust the font size of the final h3 element

I'm currently designing a webpage with various titles, but I've encountered an issue. I am unable to adjust the font size of the last h3 title without affecting the rest of the titles. I'm curious as to why this is happening and how I can re ...

Sorting Json Data Using Vue

My experience with Vue.js led me to a challenge I can't quite figure out: how to filter specific data in a Json file. Let me provide more context: I have a Json file filled with various electronics products such as computers, mice, keyboards, etc. I w ...

Is there a way to remove the option to switch to the desktop version on Joomla 2.5 mobile view?

Is there a way to set the desktop version as the default view on my website? Also, how can I remove the option for users to switch to the desktop version when accessing the site from a phone or tablet? ...

Pressing the HTML button will reveal the cart details in a fresh display box

I have been working on setting up a button to display the items in the shopping cart. I have successfully created the cart itself, but now I am facing the challenge of creating a button called showYourCart that will reveal a box containing the cart detai ...