Grid column headings are misaligned in HTML websites

Open Beginner friendly
#15,421 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
70/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
css, html, scss
Domain
frontend

Research direction

The reporter points at src/resources/projects/website/navigation/quarto-nav.scss around line 95, where the website navigation styles likely collide with the grid's .g-col-6 widths. Start by reproducing with the two files given (_quarto.yml with project: type: website plus the ::: grid block in index.qmd), running quarto preview and narrowing the window past the lg breakpoint; also render the same block as a standalone document to confirm the difference. Done means the ## Left and ## Right headings stay under their columns on narrow screens in a website project without changing standalone output; check the compiled CSS from the website theme rather than only the SCSS source.

Written by the indexing model from the issue text.

Description

bootstrap enhancement themes
I have:
  • searched the issue tracker for similar issues
  • installed the latest version of Quarto CLI
  • formatted my issue following the Bug Reports guide
Bug description

Grid column headers are misaligned on narrow screens in HTML pages that are part of a website, but not standalone HTML documents.

_quarto.yml

project:
  type: website

index.qmd

---
title: "Grid columns: headings misaligned below the lg breakpoint on narrow screens"
---

::: grid
::: {.g-col-6}
## Left
:::
::: {.g-col-6}
## Right
:::
:::

quarto preview in this directory looks like this on a wide monitor

image

When I make the window narrower, it looks like this

image

I think this is due to https://github.com/quarto-dev/quarto-cli/blob/7a77d06e959a1c4f0e7ac462b08d8b69a6717e48/src/resources/projects/website/navigation/quarto-nav.scss#L95 ?

Steps to reproduce

Create these two files in a fresh dir

_quarto.yml

project:
  type: website

index.qmd

---
title: "Grid columns: headings misaligned below the lg breakpoint on narrow screens"
---

::: grid
::: {.g-col-6}
## Left
:::
::: {.g-col-6}
## Right
:::
:::

run quarto preview and play with the window width.

Actual behavior

No response

Expected behavior

No response

Your environment
  • IDE: Positron 2026.11.1 build 4
  • OS: MacOS 27.2.1
Quarto check output
❯ quarto check                                                                             
Quarto 1.11.9
[✓] Checking environment information...
      Quarto cache location: /Users/matti/Library/Caches/quarto
      Project root: /Users/matti/Documents/quarto-repr
      Project config: /Users/matti/Documents/quarto-repr/_quarto.yml
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.10.0: OK
      Dart Sass version 1.101.0: OK
      Deno version 2.9.8: OK
      Typst version 0.15.1: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.11.9
      Path: /Applications/quarto/bin
Dominant language
JavaScript
Stars
6.2k
Forks
492
Avg merge
15h 15m
Merged PRs (30d)
94

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from quarto-dev/quarto-cli

All issues in quarto-dev/quarto-cli

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.