![]() |
VOOZH | about |
Primer CSS is a free open-source CSS framework that is built upon systems that create the foundation of the basic style elements such as spacing, typography, and color. This systematic method makes sure our patterns are steady and interoperable with every other. Its approach to CSS is influenced by Object-Oriented CSS principles, functional CSS, and BEM architecture. It is highly reusable and flexible. It is created with GitHubโs design system.
In this article, we will learn about Primer CSS Nested Links. Primer CSS Nested Links are used only when a part of the link is to be styled.
Primer CSS Nested Link class used:
Syntax:
<a class="color-fg-default no-underline" href="#"> ... <span class="Link">...</span> </a>
Example 1: Below example demonstrates the use of Primer CSS Nested Link.
Output:
Example 2: This example shows, that we can also use nested links with heading tags.
Output:
Reference: https://primer.style/#nested-link