Simple bootstrap classes not working

197
April 08, 2018, at 00:57 AM

I created a html page with a bootstrap but when I try to add responsive classes, they can not be seen on the case.

PS. Bootstrap is connected correctly

I tried this one:

<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

Answer 1

If you have included bootstrap.css in your HTML page then it should work properly. Check the below code snippet, for better convenience I have used the bootstrap class text-center.

<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>

Rent Charter Buses Company
READ ALSO
How do I create a fade effect with css (opacity)? [on hold]

How do I create a fade effect with css (opacity)? [on hold]

I have summarized several images to a slideshow and can now create no fade effect with javascript because these images have a parallax effectSo I wonder how I can create a fade effect with css (opacity)

228
jquery adding element before data-category-id?

jquery adding element before data-category-id?

I have the following code inside my construct:

227
Verifying existing users in local storage

Verifying existing users in local storage

I created a website that saves user data on the local storageit works well, but I wrote an if else statement to handle people signing up with existing email

166
Highlight data that has changed in wordpress

Highlight data that has changed in wordpress

I have an unusual requirement and searched everywhere for a solution with no luck

166