Skip to content

fix(content-section): add margin before table#1550

Open
caugner wants to merge 1 commit into
mainfrom
1535-table-margin
Open

fix(content-section): add margin before table#1550
caugner wants to merge 1 commit into
mainfrom
1535-table-margin

Conversation

@caugner
Copy link
Copy Markdown
Contributor

@caugner caugner commented May 7, 2026

Description

Adds a margin before tables.

Motivation

Prevent tables from sticking to the preceding paragraph.

Additional details

Before After
image image

Related issues and pull requests

Fixes #1535.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

8f6e22a was deployed to: https://fred-pr1550.review.mdn.allizom.net/

@caugner caugner marked this pull request as ready for review May 7, 2026 20:28
@caugner caugner requested a review from a team as a code owner May 7, 2026 20:28
@caugner caugner requested a review from LeoMcA May 7, 2026 20:28

table {
width: 100%;
margin: 1rem 0;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's set this on .table-container so margins can collapse with other tags, otherwise it looks a bit weird: #1535 (comment)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No padding between subheadings and tables

3 participants