A code block displays read-only text with code formatting within a light gray container.
- Code text
A code block is available in both light and dark themes.
Code block text is always horizontally and vertically centered.
Container spacing reduces as breakpoints get smaller.
A code block includes only text and is not interactive right now.
Related elements or patterns
To give feedback about anything on this page, contact us.
Red Hat legal and privacy links
- About Red Hat
- Contact Red Hat
- Red Hat Blog
- Diversity, equity, and inclusion
- Cool Stuff Store
- Red Hat Summit