baseline-source
Limited availability79% of users
Determines which line box's baseline is used as the reference for an element with multiple lines. For example, you can choose to align an inline-block based on its first line of text or its last line.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Safari yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
auto- Inherited
- No
- Applies to
- inline-level boxes
- Animation type
- discrete
Quick example
.inline-component {
display: inline-block;
/* Aligns the component using the baseline of its last line of text */
baseline-source: last;
}Values
autofirstlastbaseline-source browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage79%of people can use this21% use a browser without it.
Browsers
111+
115+
111+Mobile
111+Android
115+Android