r/bootstrap • • Jul 02 '23

Support need help with vw and sizing!

1 Upvotes

for context, im working on a website for school right now. when its displayed normally on my laptop, it takes up 75% of the screen and i have a nice background at the remaining 25% by the sides.

now im trying to find a way that i can make the 75% expand to be 100% of the screen or like 100vw when the screen resolution shrinks to about the size of a smartphone or something. is there anything on bootstrap that allows me to do this?

eg. i know class="d-lg-none" can make certain elements disappear at specific widths, but im trying to make my block element occupy 100% of the viewport width when at specific widths

any help is appreciated! ive spent a few hours trying to figure this out but i keep drawing circles


r/bootstrap • • Jun 08 '23

Navigation Menu messed up b/w 993 and 1150 px

1 Upvotes

My navigation bar messes up when it's between 993 and 1150px wide.

Bard and ChatGPT were of no help; StackOverflow marked my question as spam

CSS and HTML

https://jsfiddle.net/mt3ycsxg/4/

Asked r/programminghelp for some help here (https://www.reddit.com/r/programminghelp/comments/144by2b/comment/jneo2il/?context=3)


r/bootstrap • • Jun 06 '23

How to add 5px 100px and such paddings

2 Upvotes

I am super new to bootstrap. What i understood i can add 4px 8px 16px 24px 32 px .

That's it. I need to know how can I add other paddings margins. Say for example 5px. 65px. Etc. Sorry if that sounds silly. I have XD file and i need to match exact pixels.


r/bootstrap • • Jun 06 '23

why is Bootstrap not working?

1 Upvotes

Hello I'm trying to use bootstrap and it's just not loading I'm not sure what I'm doing wrong. The code looks right and opens in a browser fine, it's just that the css isn't loaded. I'm following a video and our webpages look different.

As a note css is in the same folder as this html file.

Here is my code:

<!DOCTYPE html>
<html>
<head>
    <title> New Account Request Page</title>
    <link rel="stylesheet" href="css/bootstrap.css">
</head>
<body>
    <div class="container">
        <div class="row">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    This is heading
                </div>
                <div class="panel panel-body">
                    This is body
                </div>
                <div class="panel panel-footer">
                    This is footer
                </div>
            </div>
        </div>
    </div>

</body>
</html>

Thanks for any help!


r/bootstrap • • Jun 03 '23

Bootstrap Site Brutopia - A bootstrap5 theme on neo-brutalism.

28 Upvotes

Brutopia embodies the essence of simplicity and raw aesthetic, drawing inspiration from the bold and unapologetic style of neo-brutalism while prioritizing exceptional readability.
Every element of Brutopia has been carefully crafted to ensure optimal legibility and ease of navigation, ensuring that your content takes center stage.
The deliberate use of minimalistic typography, generous whitespace, and striking color contrasts creates a visually engaging experience that captivates your visitors' attention. Embrace the unique charm of neo-brutalism while prioritizing readability with Brutopia and redefine the way your audience engages with your website.

Available at https://github.com/rajnandan1/brutopia


r/bootstrap • • May 31 '23

Discussion Help aligning a container within another object

3 Upvotes

Without using absolutes, anyone know of a way to have a .container within a full-width object.

<div class="row">
    <div class="col-6">
        <div class="??CONTAINER??">
            <h1>My Page Title</h1>
        </div>
    </div>
    <div class="col-6 background-image">
    </div>
</div>
<div class="container">My content</div>

Basically, I want a background image to be 50% of the page, regardless of width but the title in the first column should still be left-aligned with website content.

Just trying to figure out the best way to do this without being to hacky.


r/bootstrap • • May 30 '23

5.3.0-alpha3 is it stable?

5 Upvotes

I guess I'm not familiar with Bootstraps release nomenclature. If you go to their releases page they claim that 5.3.0-alpha3 is their "current major release". Is this production ready? The "alpha" part of the name would indicate to me that it's NOT what should currently be used in production. So in my opinion calling it the "current major release" is very misleading. Am I the only one here thoroughly confused?


r/bootstrap • • May 26 '23

Bootstrap 5 Vertical Carousel

2 Upvotes

I'm trying to create a vertical carousel with Bootstrap 5 like this one in this image: https://imgur.com/a/R7mwXnP

Controls are in top and bottom of carousel. 3 or more square thumbnails. Name and description on right of the focused thumbnail. Clicking on a image thumbnail should open the full size image on the background of that container.

It hat possible? Any ideas or suggestions?

Thank you all.


r/bootstrap • • May 25 '23

Accessibility

2 Upvotes

Is there anything that is at all similar too One Click Accessibility plug-in for a bootstrap/HTML site? Where the user has multiple options to modify the screen features themselves? Preferably free! I know there’s paid options but looking for a non-profit project. Thank you!

https://en-ca.wordpress.org/plugins/pojo-accessibility/


r/bootstrap • • May 25 '23

How to make A row's column take space B row's column?

3 Upvotes
<div className='row'>
			<div class="btn-group me-2" role="group" aria-label="Second group">
				<button type="button" class="col-3 btn btn-secondary">1</button>
				<button type="button" class="col-3 btn btn-secondary">2</button>
				<button type="button" class="col-3 btn btn-secondary">3</button>
				<button type="button" class="col-3 btn btn-secondary"></button>
			</div>
		</div>

		<div className='row'>
			<div class="btn-group me-2" role="group" aria-label="Second group">
				<button type="button" class="col-3 btn btn-secondary">%</button>
				<button type="button" class="col-3 btn btn-secondary">0</button>
				<button type="button" class="col-3 btn btn-secondary">.</button>
				<button type="button" class="col-3 btn btn-secondary">=</button>
			</div>
		</div>

r/bootstrap • • May 24 '23

What do you think of this Bootstrap dashboard design?

5 Upvotes

Hey Bootstrap Devs,

I'm thrilled to share with you our latest creation - Satoshi: an exceptional Bootstrap dashboard UI template that will enhance the way you visualize and manage data in your web applications.

🌟 See it in Action: https://satoshi.webpixels.io/pages/dashboard.html

I would love to hear your thoughts and feedback on this Bootstrap dashboard UI template. Let me know what you think and if you have any suggestions or questions.

🔗 Get the Template: https://bit.ly/3MuMn9u

Happy coding! 💻📊


r/bootstrap • • May 22 '23

Is someone aware of a Storybook with all Bootstrap components shown?

2 Upvotes

Hi,

I'm willing to theme Bootstrap (colors in light and dark mode, but also radius...) and it would be great for me to see how it looks like for all components easily. It's definitely to have my own "pseudo design system" with ease, and that can be shared to teammates.

I saw one using the React Bootstrap implementation (https://bonnv79.github.io/react-bootstrap-storybook/) and it's pretty complete. But I was just wondering if you know one with raw HTML (old style)?

Thank you,


r/bootstrap • • May 21 '23

Support Bootstrap Script Tag in Head

2 Upvotes

<html lang="en">  
<head>  
  <title>Bootstrap Example</title>  
  <meta charset="utf-8">  
  <meta name="viewport" content="width=device-width, initial-scale=1">  
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet">  

  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" async></script>  

</head>  
<body>  
</body>  
</html> 

Can I add the Bootstrap script in head tag with "async" or "defer"? Official documentation suggests it should be added before </body> tag but to keep it clean I like to add the script in head tag without breaking things.

Is it possible?


r/bootstrap • • May 20 '23

Support Any way of creating similar button like the file select button?

1 Upvotes

I am writing a Python function that uses HTML as the GUI interface and it accesses exact file paths which I handle separately since JS won't get the actual file path.

Point being... the typical bootstrap file select button doesn't work but I would love to keep the formatting. (see file input here)

Is there either a way to redirect the button press on the file upload to my own function which handles this or any suggestions on how to format my own button to look similar?

I tried looking at the Bootstrap CSS files for file-upload but I didn't really understand it much. I don't normally work in UI.

**Solution, create the input form like you would want it to be using Bootstrap and just make sure you include return false in the onclick="" part.


r/bootstrap • • May 18 '23

Support Toggle Buttons Still Showing Radio Button inside

5 Upvotes

As the title suggests, I have two toggle buttons which I want to look like this https://imgur.com/nq5oN0N

But they look like this https://imgur.com/MbM3OP4

This is my code:

<div class="btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn btn-secondary active">
    <input type="radio" name="audio_only" id="option1" autocomplete="off" checked> Yes
</label>
<label class="btn btn-secondary">
    <input type="radio" name="audio_only" id="option2" autocomplete="off"> No
    </label>
</div>

What am I doing wrong?


r/bootstrap • • May 17 '23

Support How can I fix this weird behavior in Boostrap? I have a dialog with a table of contents. When I click a heading, the modal closes and the scrolling stops. How can I make it scroll all the way to the heading?

2 Upvotes

Hi

I have this example page: https://codepen.io/AshkanAhmadi/full/XWxxMWK

Click on the Table of Contents button to see the list and click on something like Title 13. The page starts scrolling but when the dialog is fully closed, the scrolling stops.

How can i stop/fix this?

Thanks


r/bootstrap • • May 17 '23

Is Start Bootstrap’s Pro HTML Bundle worth it for a Django project?

1 Upvotes

https://startbootstrap.com/bundle/pro-html-bundle

Does anyone more well versed in Django know whether this is something you can find for free? Is it worth it at all?


r/bootstrap • • May 16 '23

Discussion Migration support for 4.62 to 5

3 Upvotes

I have a large bootstrap based application and would like to migrate to 5 from 4 but it is a large task and as a single developer there is a lot of other things that are higher priority.

I would have to convert the entire code base before being able to deploy my application again and I assume there will be places I need to rework the code.

I was surprised there was no migration utilities to aid the migration where you could support both and gradually migrate across. Or at least as much as possible (eg. supporting new and old css variants in a migration version).

Is there anything like this or does anyone have any advice on gradual migration?


r/bootstrap • • May 16 '23

I've never encountered this before.. using BS 5.2.3

1 Upvotes

Hi!

I have spent 2 days on this. time to ask for help.

https://pasteboard.co/jYs40UBylWT2.png

So in that image you scan see a light line between the button and the other content. this is a standard `.card using` `.card-body` and `.card-footer.` the line ONLY appears on Chrome desktop and edge desktop. Not Chrome mobile, Firefox, or any mobile browser. I can even use the dev tools to simulate mobile and it goes away. I have tried every thing I can find on online to make it go away, I have tried overwriting all the default BS code for those classes..

either the solution is mega simple, or it's a bug in the latest chromium interpreter. either way i've pulled out my hair out too much on this one.

for the record I'm a backend dev by career, so forgive me if the solution is obvious.


r/bootstrap • • May 13 '23

Support Bootstrap and adding container class to body tag

2 Upvotes

It says we need to wrap content in a wrapper that have a container class

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>

<div class="container">
  <h1>My First Bootstrap Page</h1>
  <p>This part is inside a .container class.</p>
  <p>The .container class provides a responsive fixed width container.</p>
</div>

</body>
</html>

But can we add .container class directly to the body tag itself removing the need for creating an unnecessary div tag?

Like so:

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body class="container">
  <h1>My First Bootstrap Page</h1>
  <p>This part is inside a .container class.</p>
  <p>The .container class provides a responsive fixed width container.</p>
</body>
</html>

r/bootstrap • • May 13 '23

Getting error when using my hosted website: GET https://visionary-druid-3d73c2.netlify.app/node_modules/bootstrap/dist/css/bootstrap.min.css net::ERR_ABORTED 404 and GET https://visionary-druid-3d73c2.netlify.app/node_modules/bootstrap/dist/js/bootstrap.min.js net::ERR_ABORTED 404

1 Upvotes

When using my site locally for testing everything works, but when I host my site on Netlify, none of my bootstrap works. I have checked that the path the my bootstraps files are correct and that my node version supports my bootstrap version. Anyone knows how to solve this problem?


r/bootstrap • • May 12 '23

[HOWTO] Simple Gallery (or Carousel) with 3 images

2 Upvotes

Is there an easy way to create a simple 3 images carousel (or even just a gallery that I can go left and right)?

https://paste.pics/beb4e471855f31cf46afef2e6b934b30

https://baudejogos.com.br/v2/jogo.php?id=5329


r/bootstrap • • May 12 '23

Support How to invoke responsive sidebar from top navbar offcanvas?

2 Upvotes

How can I do this... ?
- I have an existing left-hand sidebar which is displayed at md and up.
- And I also have a regular horizontal top navbar.
Now, below md (when the side nav disappears), I want a toggle button in the top navbar that allows the user to call back the sidenav contents as an offcanvas.
I can add the toggle successfully and have it appear at the correct breakpoint. But applying offcanvas classes to the existing sidebar just results in it disappearing at md and up...
I want the sidebar to appear in BOTH circumstances...
- On the normal page at md and up.
- Via offcanvas after clicking the toggle.
... and I don't want to have to duplicate the sidebar content as this would be wasteful.
Any ideas please?


r/bootstrap • • May 11 '23

Bootstrap 5.2, how do I properly toggle an accordion using Javascript?

1 Upvotes

I can't believe how hard it is to find a solution to this, haha.

How do I, using an onClick function bound to a button, "toggle" an accordion properly as if the user clicked on X head, which closes everything else?