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.

Code Block Styling Escapes Parent

See original GitHub issue

Page with issue: https://www.freecodecamp.org/learn/data-visualization/data-visualization-projects/visualize-data-with-a-bar-chart

I think there were some recent CSS changes, and they might have caused this: image

I am going to open this up to first timers, as it should be a small change to a code element within the #description element.

An issue with the help wanted or first timers only label is open for contribution. The first comprehensive PR created will be reviewed and merged. We typically do not assign issues to anyone other than long-time contributors.

If you would like to contribute, and have not read the contributors docs, please do so here: https://contribute.freecodecamp.org/#/

If you have any issues with contributing, be sure to join us on the contributors channel, or on the contributors sub-forum

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:22 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
ahmadabdolsahebcommented, Mar 12, 2021

@ShaunSHamilton, @NinjaInShade Thanks for the correction. I meant horizontally and updated the comment accordingly.

@PatrickFranz, that is a really good point and I see other tech-ed sites are doing it such as the following: Screen Shot 2021-03-12 at 9 52 06 AM

The issue is that wrapping would lead to incorrect syntax in some instances. As seen above the one line comment is a multi line comment due to wrapping.

I think stack overflow handles it pretty well. Screen Shot 2021-03-12 at 10 04 08 AM

So we would need scroll horizontally and style the scroller to make it obvious that the code is scrollable(on mac) and we don’t get windows default scrollers.

1reaction
ShaunSHamiltoncommented, Mar 11, 2021

It should scroll vertically instead of wrapping similar to https://www.freecodecamp.org/learn/scientific-computing-with-python/python-for-everybody/dictionaries-common-applications

@ahmadabdolsaheb I do not see it scrolling vertically? I see it scrolling horizontally.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to ignore parent css style - Stack Overflow
I'm building a modal do block websites, this was be solution for my HTML tags not being overwrites by the websites styles. –...
Read more >
Styling Code In and Out of Blocks | CSS-Tricks
This will target <code> blocks that don't have a <pre> tag as the immediate parent, which decouples the CSS from requiring a .post...
Read more >
Code Block Component
The Code Block Component is used to extend the functionality of the XML comments <code> tag. It provides the following features:.
Read more >
Escape Markdown Fenced Code Blocks
It turns out Markdown has a way to escape code fencing using special character ... To escape a fenced code block you can...
Read more >
Code Blocks and Callouts | Couchbase Docs
Token escaping is standard N1QL style. Stream results using 'for' iterator. Cancel streaming query by breaking out. To make callouts copy-and-paste friendly, ...
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