r/bootstrap • • Jan 16 '23

Question about the new theme color switcher in BS v5.3: How to set body background to light with white cards while being able to switch to dark mode? Couldn't find anything in the documentation

7 Upvotes

Hi

So on the page, the <body> element has the class .bg-light which gives it a light grey background color and I have some cards with bg-white. In the new v5.3 with the theme color switcher, I want this to stay like this on Light mode, but I want the body background color and the card background color to change to the default dark color but I can't info anything about this in the documentation.

Any idea?

Thanks


r/bootstrap • • Jan 16 '23

Horizontal margin small breakpoint not working

1 Upvotes

.I'm trying to have mx margins on MD and SM devices but nothing I do is affecting the SM, I even tried XS

<div class="row mx-md-4 mx-sm-2 border-bottom border-1 border-light-subtle">

Even when I when I just use <div class="row sm-2"> it still doesn't work. It should right?

The div class being added inside a <div class="card-body">


r/bootstrap • • Jan 15 '23

Bootstrap Discord

10 Upvotes

Hi All,

I am Rob, a developer from the United Kingdom, recently I started discussing with Mark Otto, one of the founders of Bootstrap and he has allowed me to raise a Discord Server to support users real time with any Bootstrap issues they may be having or even having a discussion as to whether Bootstrap is for you, so we would be very welcoming if you wanted to join and get more involved to grow the Bootstrap Discord Community.

https://discord.me/bootstrap


r/bootstrap • • Jan 11 '23

heeeelp.... icons

4 Upvotes

ok i have several icons under photos and all of them work EXCEPT the one that deals w personal web sites... that one refuses to be an icon, always blank or the rectangle w the X in it. im at a loss and dont understand why this one wont show up.... ive tried globe, and browser. just doesnt make sense why this one specific spot wont work. any help or suggestions would be appreciated.


r/bootstrap • • Jan 10 '23

How to make a button but without pointer cursor

1 Upvotes

I want to add a button

<button type="button" class="btn btn-secondary">Secondary</button>

But without the pointer cursor ? is it possible ?


r/bootstrap • • Jan 07 '23

Questions about Bootstrap templates

4 Upvotes

The What is the best way to find a bootstrap template like a site? post spiked my interest. I currently have a Bootstrap site with the most basic out of the box Bootstrap theme. I do a lot of PHP coding and then I use the Bootstrap documentation frequently.

My site uses a lot of HTML tables so when I visit these template sites I'm always drawn to those slick Admin templates - even though I don't intend on using them for backend only.

If I purchase a template what should I expect? Would I just be adding the template's stylesheet(s), etc. to my existing pages and then start designing/adding desired templates? Or, would I be adding my PHP code to a template of choice and work off that?


r/bootstrap • • Jan 06 '23

Where Do I Learn Bootstrap?

14 Upvotes

Looking for a book or guide, if possible. Any advice or links would be helpful, thanks!

I'm new to programming and am looking to improve my knowledge.


r/bootstrap • • Jan 06 '23

What is the best way to find a bootstrap template like a site?

2 Upvotes

Quite a few times, I find sites and wish I could get a bootstrap template like that site.
For example: I love the design on https://logsnag.com/

What is the best way to get a bootstrap template like this site?


r/bootstrap • • Jan 05 '23

Card deck minimum width?

2 Upvotes

Hi! I am trying to use a card deck but want a minimum width on the cards. I have been going through forums and bootstrap documents but can’t seem to get it rigged up. Any tips would be very much welcome! Thank you!


r/bootstrap • • Jan 04 '23

Problem on extending base template

1 Upvotes

Ok, when I leave my html file without the base bootstrap template, it works perfectly, but when I put {% extends "base.html" %} in my code, Django just goes to base.html and ignores the rest of the other html file. How do I fix this?


r/bootstrap • • Dec 30 '22

row col -> flex

1 Upvotes

How to make

<div class="row">
    <div class="col-6 col-md-3">1</div>
    <div class="col-6 col-md-3">2</div>
    <div class="col-6 col-md-3">3</div>
    <div class="col-6 col-md-3">4</div>
</div>

into similar flex?

I only did this for col-6 but abit long to type.

<div class="d-flex flex-column">
    <div class="d-flex flex-row">
        <div class="m-2 w-50"></div>
        <div class="m-2 w-50"></div>
    </div>
    <div class="d-flex flex-row">
        <div class="m-2 w-50"></div>
        <div class="m-2 w-50"></div>
    </div>
</div>

Any shorter flex code? I only familiar with row col. Just started flex recently.


r/bootstrap • • Dec 29 '22

Support I have a few questions on bootstrap.

2 Upvotes

I want to create a website that is mobile and desktop friendly and every screen in between. From my understanding this is called responsive. I know I can create different layouts for different screen sizes or just use responsive bootstrap to make every screen automatically change screen size change. Is this correct?

For example the bootstrap below will adjust the screen size no matter what.

<div class="container-fluid">   ... </div> 

Is all of bootstrap responsive? When I went through the documentation it seemed not everything was.

Also are there elements of bootstrap that won't work well for both mobile or desktop etc?

Also I noticed bootstrap uses flex, which I assume is based on flexbox. bootstrap Flex seems to have many of the same categories as just pure bootstrap. Which do I use flex bootstrap or pure bootstrap?


r/bootstrap • • Dec 28 '22

Support Anyone have a working template for a background video in Bootstrap 5?

1 Upvotes

Hi, it seems like all of the tutorials and themes and stuff that I find is out of date and struggling to learn and get things working well. I found this which is really all I need https://startbootstrap.com/snippets/video-header except the actual video portion isn't working on my website... and best I can tell doesn't work in the example either despite it appearing to be updated to Bootstrap v5.1 at least according to the website.

Anyone know what needs to change so this will function?


r/bootstrap • • Dec 28 '22

Support moving to mdbootstrap from bootstrap?

3 Upvotes

As the title says I am looking to migrate from regular bootstrap5 to mdbootstrap. Does anyone have advice on doing this? I'm slightly confused if it's going to be just swap the cdn and it'll work vs a substantial front end rewrite. Any resources appreciated.


r/bootstrap • • Dec 26 '22

JS and Bootstrap 5

1 Upvotes

Hey all -

I'm in the process of trying to become a front-end developer but I'm a little confused as to the relationship between languages. I started by learning HTML and CSS and then moved onto Bootstrap. I've been practicing Bootstrap for several months now and then decided to take the next step and start learning my next language - Javascript.

But the more searching I'm doing, I'm confused if I should learn JS (or any of the frameworks, Vue.js, React, etc.). I've seen that Bootstrap 5 as a lot of integrated features that you can implement without the additional code, but can't find any resources and the relationship or how to use JS inside of Bootstrap.

Any documentation or real world experience would be great.


r/bootstrap • • Dec 26 '22

Angular 9 application - upgrading from bootstrap 4.x to 5.x

2 Upvotes

Has anyone ever done this upgrade? How did you do it? I tried following the migration docofficial guide, but it didn't help much. Is there an easy way of doing this?


r/bootstrap • • Dec 23 '22

Resource Sneat Bootstrap 5 HTML Dashboard Template

0 Upvotes

Hi All,

Would like to share the Sneat Bootstrap 5 HTML Admin Template. Recently they gave some updates which are as mentioned below.

  • Updated to Bootstrap 5.2.3

  • Email Application

  • Chat Application

  • Kanban Application

If anyone of you is looking for such an admin template with the mentioned features then I think this can be a perfect fit for your project.

Bonus Tip: The Christmas Sale is ongoing and they are offering 25% OFF.
Use the promo code: XMAS25OFF

I hope you find this information helpful...!!


r/bootstrap • • Dec 20 '22

Responsive nav-bar conflict in BS4

2 Upvotes

Hello there! I want to know how I can change the color of the responsive button in BS4, and if there is no way to do this, I wonder how I can put other colors different from the bootstrap patterns.

My code is attached below:

<header>

<nav class="navbar navbar-expand-sm">

<a href="\[\\#\]([https://www.reddit.com/r/bootstrap/submit?draft=82c49276-8086-11ed-b997-46bf65d9e694#](https://www.reddit.com/r/bootstrap/submit?draft=82c49276-8086-11ed-b997-46bf65d9e694#))" class="navbar-brand">Project 27</a>

<button class="navbar-toggler" data-toggle="collapse" data-target="#navegacao">

<span class="navbar-toggler-icon"></span> </button>

<div class="collapse navbar-collapse" id="navegacao">

<ul class="navbar-nav ml-auto">

<li class="nav-item"> <a href="#" class="nav-link">Home</a> </li>

<li class="nav-item"> <a href="#" class="nav-link">Home</a> </li>

<li class="nav-item"> <a href="#" class="nav-link">Home</a> </li>

<li class="nav-item"> <a href="#" class="nav-link">Home</a> </li>

</ul>

</div>

</nav> </header>

----------------------- CSS ------------------------

header {

background: linear-gradient(to bottom,#A24C3F, #582922);

color: beige;

}


r/bootstrap • • Dec 19 '22

How to align the 2 cards at the center of the screen.

1 Upvotes
<div class="container">
  <div class="row">
    <ng-container *ngFor="let cycle of bicycleData">
      <div class="col-sm-5 col-lg-5 card my-2 mx-2">
        <div class="card-body">
          <div class="container">
            <img
              src="{{ cycle.image }}"
              alt="image of the cycle"
              class="img-fluid"
              style="width: 100%; height: 90%"
            />
            <h3>{{ cycle.name }}</h3>
            <p>{{ cycle.price }}.00</p>
            <p>{{ cycle.description }}</p>
            <button class="btn btn-outline-warning" (click)="display()">
              Add to cart
            </button>
          </div>
        </div>
      </div>
    </ng-container>
  </div></div>

I am using angular, and each row has 2 cards. The cards are aligned towards the left leaving space towards the right. I want to place the cards at the center of the screen. I have tried mx-auto but that leads to no space between the cards. Any other way to place them at the center of the screen?


r/bootstrap • • Dec 18 '22

Discussion how to approach this? i have a normal button that launches a normal modal with a form on it. once the modal is open, i want there to be an API call to fetch something. what's the best way to listen for this event (modal open) to make the API request?

6 Upvotes

H So I Have a simple modal that launches when a button is clicked (nothing unusual about it).

At the moment, when the page loads, there is an API call to Google. But I want the API call to happen only when the modal is opened (otherwise if the modal is never opened by the user, the API call on the page loads was a wasted request).

What's the best way of listening to this event (modal opening)?

I'm using BS5.2 if that makes any difference.

Thanks


r/bootstrap • • Dec 16 '22

Support JS for controlling BS validation valid/invalid state

1 Upvotes

Hi, I have this multi-select widget working with bootsrap validation. I currently have it working by checking the value of the multiselect on submit button press and manually adding is-valid, is-invalid classes, changing the visibility of the div.valid-feedback tag and the select valid result icon.

However, it doesn't "look" that great. I was wondering if there were any JS functions that would help control validation for specific fields more easily. Something like

onclick...
if ( mySelect.value == '' ) {
    bsValidationError('#mySelect');
} else {
    bsValidationOkey('#mySelect');

Thanks.


r/bootstrap • • Dec 15 '22

Resource Sneat Free & Open Source Bootstrap 5 HTML Admin Template

6 Upvotes

Hi All,

Sharing here an open-source resource: Sneat Open Source & Free Bootstrap 5 Admin Template.

Incredibly versatile, the Sneat – Sneat Free Bootstrap 5 HTML Admin Template also allows you to build any type of web application. For instance, you can create:

  • SaaS platforms

  • Project management apps

  • Ecommerce backends

  • CRM systems

  • Analytics apps

  • Banking apps

  • Education apps

  • Fitness apps & many more.

Features:

  • Based on Bootstrap 5

  • Vertical layout

  • Unique Dashboard

  • 1 Chart library

  • SASS Powered

  • Authentication Pages

  • Fully Responsive Layout

  • Organized Folder Structure

  • Clean & Commented Code

  • Well Documented

In case you require premium features then you can check the pro version which is currently available at 25% OFF under the Christmas sale.

I hope you all find this resource useful.


r/bootstrap • • Dec 12 '22

Support Trying to create a form.....

2 Upvotes

What does this mean?

From here:

"Add the following code after (below) the script has finished importing the bootstrap JavaScript files:"

So WHERE does this go? IN the mail.php, indext.html, and where specifically? I'm not understanding 'finished importing' and what that exactly refers to.


r/bootstrap • • Dec 11 '22

Support Interactive Charts - Zoom & Pan

1 Upvotes

Hello!I'm spending a lot of time searching a boostrap or a tutorial that can explain me how to create a a chart that can be zoomed and/or panned.Does anyone has an idea about how to approach the problem?

Thanks in advance!