VOOZH about

URL: https://www.geeksforgeeks.org/css/primer-css-inline-styles/

โ‡ฑ Primer CSS Inline Styles - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Primer CSS Inline Styles

Last Updated : 23 Jul, 2025

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 inline styles. Primer CSS inline styles are used to give inline CSS to style any element.

Syntax:

<div style="INLINE_STYLING" >
 Content
</div>

Example 1: In this example, we will set the height and width of an image using inline styles.

Output:

๐Ÿ‘ Image
 

Example 2: In this example, we have provided different inline styling to the different tags.

Output:

๐Ÿ‘ Image
 

Reference: https://primer.style/#inline-styles

Comment