"I am experiencing issues with the basic bootstrap classes not functioning properly

Having created an HTML page with Bootstrap, I encountered an issue where the responsive classes I tried to add were not displaying correctly.

PS. Bootstrap is linked properly

I attempted the following:

<div class="row">
    <div id="work1_1_over" class="col-sm-12 col-md-6 float-md-right float-lg-right"></div>
    <div id="work1_2_over" class="col-sm-12 col-md-6 float-md-left float-lg-left"></div>
</div>

Screenshot

https://i.sstatic.net/KgW80.png

Answer №1

By including bootstrap.css in your HTML page, the code snippet below should function correctly. I have utilized the bootstrap class text-center for better alignment.

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

<div class="row">
    <div id="work1_1_over" class="col-sm-12 text-center col-md-6 float-md-right float-lg-right">some Content 1</div>
    <div id="work1_2_over" class="col-sm-12 col-md-6 float-md-left float-lg-left">some Content 2</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 the fixed div not behaving as expected inside a parent with relative positioning?

Seeking help to troubleshoot an issue I'm facing - I have two divs positioned relatively, with child elements positioned fixed within them. As I scroll the page, these two divs are supposed to become fixed to the top of the browser using the following ...

Tips for boosting the tabindex in a React search result list with ul-li elements

Implementing search results using ul li: <ul className="search-result"> <li tabindex="1">title here...</li> <li tabindex="2">title here...</li> <li tabindex="3">title here... ...

Unable to retrieve the textContent of an HTML element, however, it is possible to log it

Currently, I'm attempting to make changes to a table on the following website. I've inserted the script below into the console of both Chrome and Firefox: let skins = [ "button" //simplified ]; skins.forEach((skin)=>{ document.que ...

Creating consistent vertical lines in HTML tables by aligning them equally on both sides

Hello, I currently have two tables with different content and I am looking to align the vertical lines between them. You can view my code here. I want to ensure that the vertical line alignment between the two tables looks consistent. Here is my current C ...

Avoid repeated appending of data in JavaScript and HTML

I am working with an HTML table and I need to ensure that the values in the second column do not repeat within the grid. Below is the JavaScript code I have written for this purpose: var $addedProductCodes = []; function getProductData(value){ $t ...

Can we execute a function once a mandatory field in a form has been validated successfully?

Looking for a way to execute a function after validating required inputs in a form before submission. Any suggestions? And I'm specifically not using jQuery, but Angular ...

The Mat-Table does not display any content despite the fact that the data is being recorded in the console

I have been trying to implement a mat-table in my Angular application to display a list of users fetched from a Spring RestAPI database. However, despite following several tutorials, I am facing an issue where only the table headers (column names) are bein ...

Extracting data from a webpage without using Web Locators, Selenium, or Python

xpath_id = '/html/body' conf_code = driver.find_element(By.XPATH, (xpath_id)) code_list = [] for c in range(len(conf_code)): code_list.append(conf_code[c].text) Looking at the situation presented above, I opted for the xpath locato ...

Customize MUI Tabs to resemble the design of Bootstrap Nav Tabs

Looking to customize Material UI Tabs to resemble Bootstrap Tabs. Made significant changes, but struggling with removing the border-bottom on the activeTab. In Bootstrap, they use marginBottom: -1px on the active tab, but it doesn't work for me. Any s ...

SASS: incorporating loops within CSS properties

Is there a way to generate multiple values for a single property in CSS? background-image: radial-gradient(circle, $primary 10%, transparent 10%), radial-gradient(circle, $primary 10%, transparent 10%), radial-gradient(circle, $primary 10%, tr ...

Updating image attributes using jQuery within an .each loop

My challenge involves a textarea where I paste HTML code, followed by a button that should display all the images from that code along with their respective alt text and titles. The goal is to easily update the alt text and titles for each image individual ...

Tips for inserting a button under a div when clicked

I am working on a layout where I have several div cards aligned side by side using the display: inline-block property. What I want to achieve is that when I click on a card, a button is added below the respective div. To accomplish this, I tried using jqu ...

The concept of AJAX send function and toggling button visibility

I am facing a challenge with a textarea and send button on a panel that is displayed after entering the first character. The visibility of the button is controlled by the isButtonVisible() method. Once clicked, it sends the text from the textarea using the ...

Pass multiple JSON objects to Angular and render them in an HTML template

Hey there! I'm looking for assistance with integrating a JSON object containing product data into an Angular HTML file. Although I've managed to make it work in the console (check out the image below), I'm unsure how to display this informat ...

Suggestions for merging 2 distinct :host() selectors with contrasting styles in Angular

I am facing a challenge with combining the CSS of two Angular components into one file. The issue arises from the difference in the :host() code for each component. For example: style1.css includes: :host() { flex: 2; overflow: auto; } style2.css ...

What is the best way to invoke a method using innerHTML?

I am struggling with two methods, DisplayBookmark() and deleteBookmark(). The DisplayBookmark method has a URL. When I click the delete button, I need to extract that URL and pass it to the deleteBookmark() method. I want to change this line: <a class= ...

Issue with Bootstrap 4.2 modal: Unable to edit input fields, button cannot be clicked, modal does not close

https://i.sstatic.net/vHnVG.png https://i.sstatic.net/MhU3f.png Utilizing Bootstrap 4.2.1, I have a modal that opens via a specific link: <a href="#" data-toggle="modal" data-target="#inviteByEmailPopup" data-backdrop="false" data-keyboard="false"> ...

Scroll to Reveal Content Hidden Behind Hero Image

I am absolutely enamored with the Beautiful Stories section on Medium's website. The way they showcase their content is just mesmerizing. One thing I've noticed is how the cover image and preview of the content changes as you resize your browser ...

The nav bar in the React CSS is being populated with elements

Currently, I am in the process of developing a React app that includes a navigation bar. The issue at hand is that the content within my h1 tags and other elements are overlapping with the navigation bar - meaning that they are not properly contained withi ...

encasing a snippet of code within a customized hyperlink

Here's the following "embed code" for an Instagram photo featuring Kim Kardashian. I'm curious - how can one encapsulate this embed code within an <a> tag (or another tag) so that clicking on the image will redirect to www.google.com? < ...