#4491 closed defect (bug) (fixed)
Archive page shows 2 columns instead of 3 at certain media queries
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Component: | HelpHub (wordpress.org/documentation) | Keywords: | has-screenshots has-patch |
| Cc: |
Description
CSS used for these columns should be changed to something more reliable and up to date. This is what we have now:
@media (min-width: 48em)
.three-up .archive-block, .three-up > div {
display: inline-block;
vertical-align: top;
width: 30%;
margin-right: 4.5%;
font-size: 0.8rem;
}
.three-up .archive-block:nth-child(3n), .three-up > div:nth-child(3n) {
margin-right: 0;
}
Using either Flexbox or CSS Grid would make columns behave better.
One of effected pages: https://wordpress.org/support/category/getting-started/
Screenshot:
Attachments (2)
Change History (17)
This ticket was mentioned in Slack in #docs by zzap. View the logs.
7 years ago
This ticket was mentioned in Slack in #docs by zzap. View the logs.
7 years ago
This ticket was mentioned in Slack in #docs by zzap. View the logs.
7 years ago
This ticket was mentioned in Slack in #docs by zzap. View the logs.
6 years ago
This ticket was mentioned in Slack in #docs by zzap. View the logs.
6 years ago
#8
@
6 years ago
- Keywords needs-design removed
- Resolution set to invalid
- Status changed from new to closed
This ticket was mentioned in Slack in #docs by estelaris. View the logs.
6 years ago
This ticket was mentioned in Slack in #docs by estelaris. View the logs.
6 years ago
This ticket was mentioned in Slack in #docs by softservenet. View the logs.
6 years ago
#13
@
6 years ago
This patch looks fine to me.
Alternatively, we could give the inner container a width of 33.3333333% and add padding within that container, but that's just preference.
@estelaris Maybe we want to start a new ticket with your proposed changes to keep this one true and actionable? Adding a patch to fix the columns could improve experience while we figure out the best approach for this page.
#14
@
6 years ago
- Owner set to dufresnesteven
- Resolution set to fixed
- Status changed from reopened to closed
In 9931:
#15
@
6 years ago
@milana_cap I applied the patch although I recognize there are more instances that should be addressed. There are a few tickets that have advanced far enough to suggest real changes will happen to these layouts. So with that in mind, I have closed this out.
You can follow along here:
https://meta.trac.wordpress.org/ticket/4007
Thanks!

In order to avoid the column issue, a list-format is better to show an index of all articles in a category.
There are several advantages: