Incorrect use of display property in article text
See original GitHub issueThe article text incorrectly uses the display
property with position
values.
Example:
First, set the
display
property of the parent element torelative
. Then for the child element, set thedisplay
property toabsolute
andtop
to50%:
The actual code example that follows is correctly using the position
property.
News article: https://www.freecodecamp.org/news/how-to-center-anything-with-css-align-a-div-text-and-more/
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:6 (4 by maintainers)
Top Results From Across the Web
incorrect use of html display property - css
this is part of my html code. The issue is that my timer with timer id timerel and my html form are not...
Read more >display - CSS: Cascading Style Sheets - MDN Web Docs
The display CSS property sets whether an element is treated as a block or inline element and the layout used for its children, ......
Read more >Display
The display property in CSS determines just how that rectangular box behaves. ... Notice it sits right inline with the rest of the...
Read more >HTML DOM Style display Property
The display property sets or returns the element's display type. Elements in HTML are mostly "inline" or "block" elements: An inline element has...
Read more >Structural markup and right-to-left text in HTML
This article looks at ways of handling text direction for structural markup in HTML, ie. at the document level and for elements like ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for catching those typos, @lasjorg. I went in and changed the text
display
toposition
wherever applicable.Please let us know if you notice issues in any other articles.
See https://github.com/freeCodeCamp/freeCodeCamp/issues/42240#issuecomment-848897634