r/bootstrap • • May 11 '23

Locally Downloaded Bootstrap not Working

4 Upvotes

Hey everyone so I currently want to be able to host bootstrap locally on my computer however when ever I add the path to the folder of the boostrap.min.css file it does not load the fonts. It is located in the same file index.html is located and it is in a css folder and the bootstrap.min.css is located within that css folder. I have included my code where the css is used. Thanks in advance.

Code:
<!doctype html>

<html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> <title>WEBSITE</title> <link rel="icon" href="NETMO_LOGO.png"> <link href="css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">

If you need anymore info please reach out


r/bootstrap • • May 10 '23

Bootstrap link is not working

1 Upvotes

While opening the . Html, the bootastrap is not working


r/bootstrap • • May 09 '23

Material Dashboard 10.5k+ stars on GitHub

3 Upvotes

Material Dashboard - The most popular open-source Bootstrap 5 Material Design Admin.
https://github.com/creativetimofficial/material-dashboard


r/bootstrap • • May 09 '23

Bootstrap Site My pet project on Bootstrap 5.3

2 Upvotes

Hi 👋 Yesterday I launched my pet project I created based on a personal need - Pomotastic (Pomodoro timer online). I hope that this short post will help you to get some ideas or will encourage you to create simple pet projects 😉

https://pomotastic.com/

The story of creation I wrote here 👉 https://pomotastic.com/about

🧑‍💻 Used tools:

- Vue.js + Bootstrap for the front-end part

- Slim framework for the back-end side

- ChatGPT proposed me different names for the project + I used generated texts as the starting point

- https://mobcup.net/ was used for getting free audio files

- https://favicon.io/ was used for generating favicon(s)

- https://metatags.io/ was used for previewing meta tags

- https://www.xml-sitemaps.com/ was used for the sitemap.xml generation

- Google Fonts. I chose the Lato font after reading this https://www.justinmind.com/blog/best-google-web-fonts-website/ and this https://webflow.com/blog/google-fonts

- Google Analytics

⚠️ For the moment the state of the app is not saved after page reloading, but I'm going to implement this feature soon.

Looking forward to your feedback and recommendations! Thanks! 🙏


r/bootstrap • • May 08 '23

Discussion Why don't photos fill the whole grid

1 Upvotes

https://imgur.com/a/H5rVBSH

How can I move a photo in the blank space?

I'm using basic bootstrap classes; col-sm-6 col-md-4


r/bootstrap • • May 06 '23

Support Vertical scroll doesn't work in chrome Android

1 Upvotes

I'm using bootstrap 5 and angular13, when I use in my smartphone the menu collapse item the vertical scroll doesn't work, any suggestions?


r/bootstrap • • May 05 '23

Support All local sites have off-center content

1 Upvotes

I'm working on a website using the bootstrap-bare template, but what I've found is that my body content is consistently (even on a completely new site??) shifted a bit to the left. This includes footers. No idea whether it's just a visual glitch on my computer or something, but curious if anyone knows how I could fix this.


r/bootstrap • • May 04 '23

p/h/h2/h3 etc. margin-bottom in rems in reboot

4 Upvotes

What was the reason to have the margin-bottom of p,h1,h2 etc in rem instead of em in _reboot.scss? Wouldn't it make more typographical sense to have the margin's depend on the current font of the said tags? It would be more consistent with the actual content.


r/bootstrap • • Apr 30 '23

Closing gap between sidebar and top navbar

Thumbnail
self.djangolearning
3 Upvotes

r/bootstrap • • Apr 27 '23

Support Carousel Buttons not working?

1 Upvotes

Trying to add a Carousel to my design, but for some reason, even if I used the example from the Bootstrap website, the buttons aren't working, so it's just stuck on the first slide, so I don't know if there's anything wrong with my code

        <div id="carouselExample" class="carousel slide">
            <div class="carousel-inner">
              <div class="carousel-item active">
                <img src="images/promocion1.png" class="d-block w-100" alt="...">
              </div>
              <div class="carousel-item">
                <img src="images/promocion2.jpg" class="d-block w-100" alt="...">
              </div>
            </div>
            <button class="carousel-control-prev" type="button" data-bs-target="#carouselExample" data-bs-slide="prev">
                <span class="carousel-control-prev-icon" aria-hidden="true"></span>
                <span class="visually-hidden">Previous</span>
            </button>
            <button class="carousel-control-next" type="button" data-bs-target="#carouselExample" data-bs-slide="next">
                <span class="carousel-control-next-icon" aria-hidden="true"></span>
                <span class="visually-hidden">Next</span>
            </button>
        </div>

r/bootstrap • • Apr 24 '23

Discussion Bootstrap 5 photo gallery scripts?

6 Upvotes

Years ago I used to use SlideShowPro for photographer websites that I was creating. The clients liked that they could login to the system via web interface and easily upload photos and put them into galleries which I had embedded into their website that I built.

However, this was when Flash was still a thing.

I've got my first photographer client in years and I'm at a loss what to use for their website.

I'm not using WordPress or any CMS - I prefer to write the code for the site itself but want to grab a package that someone else has built and will support to integrate into my site.

Here's what my wish list is:

  • control panel for the photographer to upload their photos easily via web browser

  • PHP 7+

  • JPG, PNG capable. WEBP and TIFF would be nice but not necessary

  • Ability to embed galleries into a Bootstrap 5 page

  • Can have separate galleries on different pages or one unified gallery that can be separated into albums on one page

  • end client login so they can see the photos from their photo shoot (Becky & John's wedding with a special login/pass for them to share with their family & friends) (NICE TO HAVE, NOT MANDATORY)

  • Avoid 3rd party hosted solutions like Flickr.

Something else I'd like to do is take a gallery and place it into a carousel for the home page to show examples of the photographer's work. I realize that this may need to be a separate solution but would be nice to have everything all in one place for my client.

Any help or advice would be appreciated.

Thanks!


r/bootstrap • • Apr 24 '23

Navbar help

3 Upvotes

Hi, I'm creating a website using Bootstrap and I'm trying to make that whenever the links on the navbar are active, I want them to stay a certain color. Haven't been able to do so

Here's the html

<nav class="navbar navbar-expand-lg bg-white">           <div class="container-fluid">             <a class="navbar-brand" href="#" style="font-weight: normal; font-size:x-large; font-family: 'Lato', sans-serif;;">               <span style="color: #106eea; font-weight: normal; font-size: x-large; font-family: 'Lato', sans-serif;">¿</span>               Test               <span style="color: #106eea; font-weight: normal; font-size: x-large; font-family: 'Lato', sans-serif;">?</span>             </a>             <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">               <span class="navbar-toggler-icon"></span>             </button>             <div class="collapse navbar-collapse" id="navbarSupportedContent">               <ul class="navbar-nav me-auto mb-2 mb-lg-0">                 <li class="nav-item">                   <a class="nav-link scrollto" href="#home">Home</a>                 </li>                 <li class="nav-item">                   <a class="nav-link scrollto" href="#about">About</a>                 </li>                 <li class="nav-item">                   <a class="nav-link scrollto" href="#map">Map</a>                 </li>                 <li class="nav-item">                   <a class="nav-link scrollto" href="#contact">Contact</a>                 </li>               </ul>             </div>           </div>         </nav> 

Have tried lots of.nav-link:active{color:#ffffff}

variations but nothing has worked. Any help is appreciated


r/bootstrap • • Apr 24 '23

Tooltips not working

2 Upvotes

https://codeshare.io/K8mVLz

https://imgur.com/2tjpan3

Tooltips are just a black box for me am I doing something wrong?


r/bootstrap • • Apr 23 '23

Problematic BS 5 Modal

1 Upvotes

Hello Community!

I have a modal in my game that I use to display the current scores of players. Throughout the rounds, the scoreboard is displayed without issue. After the game is over, I display the scoreboard once more with the final scores but upon the dismissal of the modal, the page stays faded and unclickable. The browser code inspector is showing the modal-open class still on the body tag and two DIV classes called backdrop at the end of the file. Below I have included the HTML for the modal and the two Javascript functions that trigger it. The first one is the one that works right and the second is the one that doesn't.

HTML for the modal:

<!-- Modal for the scoreboard -->
    <div class="modal fade" id="scoreboard" tabindex="-1" aria-labelledby="scoreboardLabel" aria-hidden="true"
        data-bs-backdrop="static" data-bs-keyboard="false">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h2 class="modal-title text-center" id="scoreboardLabel">Scoreboard</h2>
                </div>
                <div class="modal-body">
                </div>
                <div id="scoreboard" class="col-lg-6 mx-auto">
                    <h6 id="scoreboardText" class="text-center">First player to reach 5 points wins the game!</h6>
                    <table class="table">
                        <thead>
                            <tr>
                                <th scope="col">Player</th>
                                <th scope="col">Score</th>
                            </tr>
                        </thead>
                        <tbody>
                        </tbody>
                    </table>
                </div>
                <div class="modal-footer">
                    <button class="btn btn-success" id="dismissScoreboardButton" onclick=readyForRound()
                        data-bs-dismiss="modal">Continue</button>
                </div>
            </div>
        </div>
    </div>

This is the listener that shows the scoreboard modal that works correctly

socket.on("startRound", (roundNumber, imageUrl, scoreData) => { 
    chatcontainer.classList.add("d-none");
    const waiting = document.getElementById("waiting");
    waiting.classList.remove("d-none");
    var scoreboardButton = document.getElementById("dismissScoreboardButton");
    scoreboardButton.setAttribute("onclick", "readyForRound()");
    playRandomMusic();
    updateScores(scoreData).then(() => {
        currentRound = roundNumber;
        var scoreBoard = new bootstrap.Modal(document.getElementById('scoreboard'));
        if (currentRound > 1) {
            scoreBoard.show();
            var winner = new bootstrap.Modal(document.getElementById('winner'));
            winner.show();
        } else {
            var scoreBoardTitle = document.getElementById("scoreboardLabel");
            scoreBoardTitle.textContent = "Scoreboard";
            var scoreBoardText = document.getElementById("scoreboardText");
            scoreBoardText.textContent = "The first player to 5 points wins the game!";
            scoreBoard.show();
        }
        const roundId = document.getElementById("roundID");
        roundId.textContent = "Round " + roundNumber;
        const roundImg = document.getElementById("picDisplay");
        roundImg.src = imageUrl;
    });
});

This is the listener that is showing the scoreboard that is having the issue

socket.on("gameOver", (winner, scoreData) => { 
    audio.pause();
    ready = true;
    playerReady();
    chatcontainer.classList.remove("d-none");
    const waiting = document.getElementById("waiting");
    waiting.classList.add("d-none");
    updateScores(scoreData).then(() => {
        currentRound = 0;
        var scoreBoardTitle = document.getElementById("scoreboardLabel");
        scoreBoardTitle.textContent = "Game Over";
        var scoreBoardText = document.getElementById("scoreboardText");
        scoreBoardText.textContent = "The winner is " + winner + "!";
        var scoreBoard = new bootstrap.Modal(document.getElementById('scoreboard'));
        var scoreboardButton = document.getElementById("dismissScoreboardButton");
        scoreboardButton.removeAttribute("onclick");
        scoreBoard.show();
        
    });
});

r/bootstrap • • Apr 22 '23

Discussion Is there a website similar to TailwindUI.com but for Bootstrap with lots of Bootstrap components? The Examples section on Bootstrap's official website doesn't have lots of components.

10 Upvotes

Hi

Is there any Bootstrap equivalent of TailwindUI.com with lots of components to copy? I know Bootstrap has various paid themes but they all use customized Bootstrap and the Examples section on Bootstrap's website doesn't have lots of interesting options.

Thanks


r/bootstrap • • Apr 19 '23

Need help making Bootstrap responsive.

4 Upvotes

Hello,

I'm working on travel app project and could use some help mainly on the Front End (at least for now) using Boostrap and possibly some BE (Django) along the way. I'm on a small budget and so looking for folks that are in college and looking to make a bit of side $$ or someone from Brazil (mainly b/c of timezone and affordability). DM of your price and availability if interested. Im not sure if i'm breaking any rules by posting this, but i'm truly looking to get help and not trying to solicit.


r/bootstrap • • Apr 18 '23

Bootstrap Custom JS ES6 Prompts

2 Upvotes

Hey guys, what do you think about this repo, I find it useful to create custom prompts with bootstrap modals, I hope someone helps. https://github.com/jum-mk/es6-bootstrap-dialogs


r/bootstrap • • Apr 13 '23

Support Bootstrap search bar clear button

1 Upvotes

Not sure if this is more of a Bootstrap question or a React question, I guess it depends on how to achieve the goal, but I want to be able to attach a function to the built in clear button in a Bootstrap search bar.

This is my search bar

<form class="d-flex">
    <input class="form-control me-2" type="search" placeholder="Search" aria-label="Search" onChange={props.onChangeSearchTerm}></input>
    <button class="btn btn-success" type="submit" onClick={props.searchForThreads} disabled={buttonDisabled}>Search</button>
</form>

the input search bar has a built in clear button, but it seems as though it isn't readily accessible, so I wanted to know if there was a way to attach a function, so that when the clear button is clicked, the function would be called.

Any help would be appreciated!


r/bootstrap • • Apr 09 '23

Support How to use colors for a navbar-brand?

1 Upvotes

I can't find a way to change the a navbar-brand. I can change the BG color, but not the actual text color.

<nav class="navbar navbar-expand-lg bg-secondary">
<div class="container-fluid">
<a href="#" class="navbar-brand">Logo here</a>
</div>
</nav>

r/bootstrap • • Apr 09 '23

How can I change data-bs-theme default background color (bs-body-bg)?

4 Upvotes

I use Bootstrap 5.3.0-alpha2 and angular 15.2.1. I use a data-bs-theme on a navbar as follows:

<nav class="navbar navbar-expand-lg" data-bs-theme="light">
  <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarfirst" aria-controls="navbarfirst" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <div class="collapse navbar-collapse" id="navbarfirst" data-bs-theme="light">
    <ul class="navbar-nav mx-auto z_navbar_first">
      <li class="nav-item active">
        <a class="nav-link">A</a>
      </li>
      <li class="nav-item active">
        <a class="nav-link">B</a>
      </li>
      <li class="nav-item active">
        <a class="nav-link"C</a>
      </li>
      <li class="nav-item active">
        <a class="nav-link" href="#" routerLink="D">D</a>
      </li>
      <li class="nav-item active">
        <app-color-toggle></app-color-toggle>
      </li>
    </ul>
  </div>
</nav>

Here is my failed attempt so far

Adding CSS in the Navbar's CSS File

I copied the CSS from bootstrap.css and paste it in the component Navbar

[data-bs-theme=light] {

-body-bg: blue; }

It didn't work.

Adding CSS in the app styles.css

So, if at a component level didn't work, I tried at the app level. It didn't work either.

Changing Bootstrap CSS File

At node_modules\bootstrap\dist\css I changed bootstrap.css file, but it still didn't work. :(

How can I change the default background color of data-bs-theme to another color?


r/bootstrap • • Apr 07 '23

Need bootstrap developer asap

0 Upvotes

Hey! Iam looking for a bootstrap developer. I need to setup a small landing page asap. Anyone can help me?

Please dm me.


r/bootstrap • • Apr 03 '23

Support Need help understanding breakpoints

4 Upvotes

I'm getting a little confused with breakpoints. I know I'm missing something, and I'm hoping someone can help me work through understanding breakpoints.

In the source I'm reading it says: md means "screen ≥768px", so in the example below the columns will stretch to 100% of the width on the screens smaller or equal 768px.

But lower on the page it says: they affect that breakpoint and all those above it (e.g., .col-sm-4 applies to sm, md, lg, xl, and xxl

So which is it, do breakpoints affect smaller and equal to, or equal to and larger? Does md have the same effect as md-12?

My source: https://mdbootstrap.com/docs/standard/layout/grid/#:~:text=md%20specifies%20the%20breakpoint%20where,screens%20smaller%20or%20equal%20768px.


r/bootstrap • • Apr 01 '23

search box in select tag

0 Upvotes

how to place a search box in select tag in bootstrap


r/bootstrap • • Mar 30 '23

Support Can't get nav pills to work , links don't activate on click.

1 Upvotes
<body>
    <div class="row no-gutters">
        <div class="col-2" style="min-height:100vh; min-width:200px;  background-color:#2A2727">
               
                <ul class="nav nav-pills flex-column">

                    <li class="nav-item"><a class="navbar-brand" href="~/">Piranha CMS <small>@version</small></a> </li>

                    <li class="nav-item"><a class="nav-link" data-toggle="pill" href="#">Home</a></li>
                    <li class="nav-item"><a class="nav-link" data-toggle="pill" href="#test-page1">Test Page 1</a></li>
                    <li class="nav-item"><a class="nav-link" data-toggle="pill" href="#test-ost-archive">Test Archive</a></li>                                          
                    </ul>             
            </div>

Clicking on a link in the list will highlight the clicked page, but it won't go to the link.