DEV Community

CSS

Cascading Style Sheets (CSS) is a simple language for adding style (e.g., fonts, colors, spacing) to HTML documents. It describes how HTML elements should be displayed.

Posts

đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.
How to load custom fonts into a webpage using CSS?

How to load custom fonts into a webpage using CSS?

5
Comments
3 min read
How to make HTML elements in horizontal order that is responsive to the screens using CSS?

How to make HTML elements in horizontal order that is responsive to the screens using CSS?

5
Comments
3 min read
How to make font size grow according to the size of the screen using CSS?

How to make font size grow according to the size of the screen using CSS?

5
Comments
4 min read
How load an SVG file from a remote url as a background image in CSS?

How load an SVG file from a remote url as a background image in CSS?

5
Comments
2 min read
How to set the aspect ratio for images using CSS?

How to set the aspect ratio for images using CSS?

5
Comments
7 min read
How to add or change the outline color of the HTML elements when focused using the tab key in CSS?

How to add or change the outline color of the HTML elements when focused using the tab key in CSS?

3
Comments
3 min read
How to set styles to a webpage if a user's device has a mouse connected using only CSS?

How to set styles to a webpage if a user's device has a mouse connected using only CSS?

5
Comments
2 min read
How to change the color or the accent color of the interactive HTML elements on a webpage using CSS?

How to change the color or the accent color of the interactive HTML elements on a webpage using CSS?

3
Comments
2 min read
How to check if a user's device has a touchscreen using only CSS?

How to check if a user's device has a touchscreen using only CSS?

5
Comments
2 min read
How to change the color or the accent color of the radio input HTML element on a webpage using CSS?

How to change the color or the accent color of the radio input HTML element on a webpage using CSS?

5
Comments
2 min read
How to automatically apply light mode CSS styles to the website when the user's system theme is changed to light mode?

How to automatically apply light mode CSS styles to the website when the user's system theme is changed to light mode?

5
Comments
3 min read
How to set styles to a webpage if a user's device has only a keyboard connected to it using CSS?

How to set styles to a webpage if a user's device has only a keyboard connected to it using CSS?

3
Comments
2 min read
Modifying an SVG path with CSS

Modifying an SVG path with CSS

28
Comments 3
2 min read
The CSS `accent-color` property explained

The CSS `accent-color` property explained

6
Comments 1
2 min read
[How to] add decorative content through CSS using pseudo-elements

[How to] add decorative content through CSS using pseudo-elements

3
Comments
1 min read
đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.