Skip to content

Instantly share code, notes, and snippets.

@shahriar-shojib
Created November 28, 2020 17:36
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shahriar-shojib/b617248e04d9c13bb3034e37989dff0e to your computer and use it in GitHub Desktop.
Save shahriar-shojib/b617248e04d9c13bb3034e37989dff0e to your computer and use it in GitHub Desktop.
How to center a fucking div in bootstrap
<div class="container">
<div class="row">
<div style="margin: 0 auto; min-height: 100vh; min-width: 100%;" class="d-flex align-items-center justify-content-center">
<p> this is a fucking centered item</p>
</div>
</div>
</div>
@LucianoBAF
Copy link

Googled "how to align a fucking div using the fucking bootstrap". Not disappointed.

@kehaxa
Copy link

kehaxa commented Aug 10, 2023

<3

@un-simp
Copy link

un-simp commented Aug 29, 2023

BRO I JUST SEARCH "how to fucking center a div" and this showed up amazing

@SharbelOkzan
Copy link

the art of SEO

@deans-bradley
Copy link

This made my day. Searched "how the f*ck to center a div", and I found this.

@Johann-Valery
Copy link

LMAO just did the same thing

@jamesbong123456789
Copy link

how to centre a fucking div

@xertosxd
Copy link

xertosxd commented Jan 1, 2024

thank you so fkin much. i just googled it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment