If you ever happen to need to position caption for a table in CSS, there's a rule for that, called caption-side
. No additional rules or markup is needed, just this one:
.bottom {
caption-side: bottom;
}
Copied to clipboard!
By default, this is set to top
. It also accepts the following non-standard values:
.non-standard {
caption-side: left;
caption-side: right;
caption-side: top-outside;
caption-side: bottom-outside;
}
Copied to clipboard!


Resources:
Remove ads📚 Get access to exclusive content
Want to get access to exclusive content? Support webtips with the price of a coffee to get access to tips, checklists, cheatsheets, and much more. ☕
Get access