question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Headers at the top of the columns seemingly not aligned

See original GitHub issue
image

As reported on this reddit thread, there is some issue with headers being slightly offset at the top of columns, when by all appearances they should be aligned perfectly. In the screenshot I have added an absolutely positioned blue line to make that clear. It was reported with the h3 header, and I’ve looked at h3 and h4.

Here is a link to a copy of the original test brew showing the issue.

Note, original user had a “vertical spacing” div included, presumably to break the column rather than using a normal column break…if a column break was used (double set of triple ticks ```) this alignment issue would be fixed.

But an alternative fix is to change the h3 styling (and other headers)…currently, it features a top and bottom margin of .2em. If the top-margin was changed to top-padding, the issue would be fixed. For some reason, that top margin isn’t registered at the top of a column.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
G-Ambattecommented, Jan 27, 2021

I’ve been experimenting a little, it seems that the removal of margin-top is the key. Switching to padding-top preserves the current spacing for any existing brews.

0reactions
Gazook89commented, Sep 12, 2021

Looks like this is fixed, as long as display:inline-block holds up in terms of the other issue (min-width) we’ve discussed in Gitter.

Closing this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Header 1 not aligned across two columns - Microsoft Community
I am editing a newsletter and am concerned about it not looking professional due to misaligned columns. There are two columns per page....
Read more >
Why are these HTML column headers misaligned?
I believe it's faster for large tables to be rendered with dynamic column widths, header/column alignment is then guaranteed, plus the code is ......
Read more >
Left-aligned headers but centered entries in the remainder of ...
I said the "column headers are to be left-aligned." Anyway, I know how to center it. OK. I now see your use of...
Read more >
Headers not aligned with columns in interactive grid (5.1.2)
To create that misalignment we just have to press ctrl and scroll the mouse wheel back and forth for a while. In order...
Read more >
Re: How to create two text columns (left aligned a... - Adobe Support ...
Hi John,. Please use View > Text Symbols ON to identify the formatting of the header area. IMHO there is a Right TAB...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found