₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,511 members, 8,422,384 topics. Date: Monday, 08 June 2026 at 08:49 AM

Toggle theme

Margin Vs Padding In Bootstrap - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingMargin Vs Padding In Bootstrap (726 Views)

1 Reply (Go Down)

Margin Vs Padding In Bootstrap by EfevwiaEfemena(op): 3:50pm On Jul 30, 2022
Margin in Bootstrap is represented with the letter “m”, the margin-bottom is represented as “mb”, the margin-top is represented as “mt”, the margin-left is represented as “ml” and the margin-right is represented as “mr”. So to set a margin-top for an html element will be. FOR EXAMPLE:
<h1> class=”mt-5”>Webbikon Technologies is Best Web Design Company Abraka. </h1>

Padding in Bootstrap are represented with the letter “p”, the padding-top is represented as “pt”, the padding-left is represented as “pl”, the padding-bottom is represented as “pb” and the padding-right is represented as “pr”. So to set a padding-bottom on a container element (div) will be. FOR EXAMPLE:
<div class="pb-5">Webbikon Technologies is the Best Web Design Company in Abraka</div>

NOTE: The only way to actually be a software engineer is practice , you can seek information on Google, stackoverflow or even watch Youtube videos or buy Udemy courses or W3school courses , but if you don’t practice, there is no difference between someone who started coding today and you who started some weeks back or more.

Re: Margin Vs Padding In Bootstrap by rottable(m): 4:01pm On Jul 30, 2022
Bootstrap can be so confusing ehn

There can be like 10 nav on a single line of code. nav navbar navbrand
Re: Margin Vs Padding In Bootstrap by EfevwiaEfemena(op): 4:18pm On Jul 30, 2022
You are right but once you understand it's concept, it becomes easier, the problem is most of us are so just focus to code that we fail to understand the concept.. That's why i advise newbies to take their time to understand the concept. NOTE: understanding the concept is different from cramming it, by understanding I mean whenever you see a code related to that concept, you will always know it, even aside bootstrap. it could be python or any programming language. I hope this was helpful?
Re: Margin Vs Padding In Bootstrap by rottable(m): 8:12pm On Jul 30, 2022
EfevwiaEfemena:
You are right but once you understand it's concept, it becomes easier, the problem is most of us are so just focus to code that we fail to understand the concept.. That's why i advise newbies to take their time to understand the concept. NOTE: understanding the concept is different from cramming it, by understanding I mean whenever you see a code related to that concept, you will always know it, even aside bootstrap. it could be python or any programming language. I hope this was helpful?
Thanks for the explanation Boss
Re: Margin Vs Padding In Bootstrap by Nobody: 2:53pm On Jul 31, 2022
rottable:
Bootstrap can be so confusing ehn

There can be like 10 nav on a single line of code. nav navbar navbrand
Bootstrap is a mess fr.
If not for her components like Navbar and Carousels I wouldn’t touch it with a 10ft pole.
People say it’s improving sha, but maybe it’s because I use tailwind that’s why my standards are so high.
Re: Margin Vs Padding In Bootstrap by silento(m): 3:09pm On Jul 31, 2022
W3.css
Is better alternative with more cleaner naming
1 Reply

How To Apply Border, Margin And Padding Properties In CSSHow do I access jQuery and bootstrap on local host? (solved)How Can I Replicate This In Bootstrap?234

Need A Tutorial On Data AnalysisHow Can I Loop This Data In VuejsIf You Are In ALX , Let's Learn Together