I am experiencing difficulty getting Bootstrap Columns to appear next to each other despite trying numerous solutions

Check out this code snippet:

<div class="mainptext">
    <h3><strong>Master the following:</strong></h3>
    <div class="container">
        <div class="row">
            <div class="col-6">
                <ul>
                    <li>Lifts</li>
                    <li>False Deals</li>
                    <li>Side Slips</li>
                    <li>Passes</li>
                    <li>Palming</li>
                    <li>False Shuffles</li>
                </ul>
            </div>
            <div class="col-6">
                <ul>
                    <li>False Cuts</li>
                    <li>Color Change</li>
                    <li>Crimps</li>
                    <li>Jogs</li>
                    <li>Peaks</li>
                    <li>Glides</li>
                    <li>Reverses</li>
                </ul>
            </div>
        </div>
    </div>
</div>

I'm having trouble getting the second column to align correctly beside the first.

The margin should not be set to 100%.

I referred to https://getbootstrap.com/docs/4.1/layout/grid/#equal-width for guidance.

Despite my 35 years of web development experience, I can't seem to solve this simple issue.

https://i.sstatic.net/ZwDgx.jpg

This code is contained within an article tag and is not intended to span the full width of the page. "NOTE: Ignore the DJ equipment. That picture will be replaced" https://i.sstatic.net/nG8or.jpg

Here's where the problematic section is located:

<!-- Main -->
<div id="main" class="site-main container_12">

    <!-- Left column -->
    <div id="primary" class="grid_8">

        <!-- About Us -->
        <article class="single-post">
            <header class="entry-header grad1">
                <h1 id="equipTitle" class="entry-title">Welcome to our Magic Shop</h1>
                <div class="clear"></div>
            </header>
....
Any suggestions?

UPDATE: Here are images from the DEV console: https://i.sstatic.net/0tuuI.jpg And the console log: https://i.sstatic.net/wxkq5.png

Answer №1

I successfully integrated your HTML elements by simply copying and pasting them. I am using Bootstrap Version 4.1.3 as a Content Delivery Network (CDN).

I suspect there might be style overrides on the columns, so I need to identify which styles are being overridden using Inspect Element.

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">

<div class="mainptext">
    <h3><strong>Explore the following:</strong></h3>
    <div class="container">
        <div class="row">
            <div class="col-6">
                <ul>
                    <li>Lifts</li>
                    <li>False Deals</li>
                    <li>Side Slips</li>
                    <li>Passes</li>
                    <li>Palming</li>
                    <li>False Shuffles</li>
                </ul>
            </div>
            <div class="col-6">
                <ul>
                    <li>False Cuts</li>
                    <li>Color Change</li>
                    <li>Crimps</li>
                    <li>Jogs</li>
                    <li>Peaks</li>
                    <li>Glides</li>
                    <li>Reverses</li>
                </ul>
            </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

Is there a way to modify the location of the datepicker/calendar icon within my bootstrap form?

When using react-bootstrap with the <Form.Control type="date"> element, I noticed that the calendar icon or date picker is automatically positioned to the right side/end of the form field. However, I am interested in moving the calendar ico ...

The Alert Component fails to display when the same Error is triggered for the second time

In the midst of developing a Website using Nuxt.js (Vue.js), I've encountered an issue with my custom Alert Component. I designed a contact form on the site to trigger a specialized notification when users input incorrect data or omit required fields ...

The <span> tag creating a surprise gap following a word

Using Angular4, I've come across an odd issue where one of my span elements is adding an extra space to the end of words like this: https://i.stack.imgur.com/H4TD7.png The only CSS properties that are set include font-family, -webkit-font-smoothing, ...

Adjusting the width of the rail in Material UI's vertical Slider component in React

After attempting to adjust the width and height of the rail property on the material ui slider I obtained from their website demo, I have encountered an issue with changing the thickness. import React from "react"; import { withStyles, makeStyles } from " ...

CSS - positioning the sidebar on the far left edge of the screen (refer to image)

Is there a way to create a layout similar to this design: https://i.sstatic.net/yjkeD.png For a demonstration, see here: http://jsfiddle.net/ymC82/ Current HTML code: <div class="wrapper"> <aside> Sidebar </aside& ...

How can I alter the background color while performing a transformation in JS/CSS?

I'm currently working on achieving a flipboard effect for some divs, where one side is white and the other is black. Here's what I have so far: setInterval(function () { document.getElementById('test').classList.toggle('flipped& ...

Issues arise with the functionality of Zurb Foundation 5 tabs

Utilizing the tabs feature in ZURB Foundation 5, I've noticed that clicking on a tab changes the hash in the URL. However, I actually want to prevent this behavior as I rely on the hash for managing page loads. Although I attempted to use preventDef ...

Looking for a way to make CSS text color for a:hover have higher priority than a:visited?

I'm having an issue with my CSS code that changes the background color when hovering over a link. The text color is white on a blue background during hover, but if there is no hover, it's blue with a white background. Additionally, once the link ...

The website is not displaying CSS styles as intended

I'm currently in the process of building a website with Bootstrap 5, but I've encountered an issue where the properties from index.css are not taking effect on index.html. Specifically, when I hover over a service card, the background is supposed ...

Can a YouTube video be triggered to play when a specific CSS style is selected?

I am searching for a method to display and play different YouTube videos based on a selected CSS style from a drop-down menu. I believe JavaScript can be utilized to detect the chosen CSS. Include the following in the html header of the page. <script ...

Arrangement of asymmetrical interactive forms

I am in need of creating a design featuring numerous non-rectangular shapes that are interactive and reveal an image when clicked. The concept is to transform an image of stained glass into a webpage where each pane can be clicked to unveil its colorful ve ...

What is the correct method for formatting text spacing?

A few months ago, I dabbled in web design and created a basic website. Now, I'm revisiting it to clean up the layout and make it more visually appealing. I initially used non-breaking spaces to separate paragraphs, but I know that's not optimal. ...

Is it possible to implement CSS code from a server request into a React application?

With a single React app that hosts numerous customer websites which can be customized in various ways, I want to enable users to apply their own CSS code to their respective sites. Since users typically don't switch directly between websites, applying ...

What is the best way to connect or link to a HTML table row <tr>

Is there a way to trigger an alert when the user double clicks on the whole row? ...

Exploring Unicode Symbols for Icon Selection

I'm currently working on integrating an icon picker into my application that will enable the user to select a mathematical operator for data comparison. While I have successfully implemented the fontawesome-iconpicker on the page, I am encountering d ...

Guide on how to align the bootstrap popover's arrow tip with a text field using CSS and jQuery

I have tried multiple solutions from various questions on Stack Overflow, but I am still struggling to position the arrow tip of the bootstrap popover correctly. html: <input type = "text" id="account_create"/> js: $('.popov ...

I am developing a quiz application using JavaScript, and I am wondering how I can smoothly transition from one question to the

I'm working on developing a quiz application and I'm facing an issue where my quiz is skipping question 2 when moving from one question to the next using the "next" button. I have a total of 3 questions in my quiz and for some reason, it jumps fr ...

Ways to modify the color of every appearance of a term in an html grid using css

My HTML code includes an AngularJS table as shown below: <table id="searchTable"> <thead> <tr> <th>Index</th> <th>Observation</th> <th>Reported By</th> ...

When the browser is resized, the fadeIn() function restarts from the

My plan was to create a dynamic effect where a browser-sized div would rotate through 3 different backgrounds using jQuery's fading effect. However, I encountered an issue - whenever I resize the browser window, the effect restarts from the beginning ...

Is there a way to eliminate the additional and varying pseudo-padding on text inputs in both Webkit and Gecko browsers?

The issue I'm facing is specific to input[type="text"] elements in Webkit. No matter what adjustments I make, it seems like there is an additional padding: 1px 0 0 1px (top and left only) applied to the element. A similar anomaly occurs in Gecko as w ...