[v4] Introduce variable for customizing margin-bottom for "p"
See original GitHub issue_reboot.scss has:
p {
margin-top: 0;
margin-bottom: 1rem;
}
However the value is hardcoded. It would be nice to have it exported to _variables.scss so that people can customize (_custom.scss was nice but looks like it’s removed now).
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top Results From Across the Web
margin-bottom - CSS: Cascading Style Sheets - MDN Web Docs
The margin-bottom property is specified as the keyword auto , or a <length> , or a <percentage> . Its value can be positive,...
Read more >breadcrumb "margin-bottom" variable · Issue #23016 - GitHub
The "margin-bottom" property of the breadcrumb is fixed in "1rem" ... [v4] Introduce variable for customizing margin-bottom for "p" #23031.
Read more >Spacing - Bootstrap
Assign responsive-friendly margin or padding values to an element or a subset of its sides with shorthand classes. Includes support for individual properties, ......
Read more >Understanding CSS Variables - YoungInnovations' Blog
Here I've defined two CSS variables which have color values inside the :root selector. The variables are defined inside and are scoped with...
Read more >CSS Margin - W3Schools
The auto Value. You can set the margin property to auto to horizontally center the element within its container. The element will then...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’d also like to see this change. Personally I like having the same margin for lots of block-level elements.
p
,figure
,ul
,ol
,table
, etc. I think that bootstrap3 based these margin-bottoms off of$line-height-computed
(sometimes($line-height-computed / 2)
). Either way, it seems like a var is more flexible and clean than overriding css.I would like to work on this for beta 2