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.
7 Developer Portfolio for inspiration

7 Developer Portfolio for inspiration

156
Comments 23
3 min read
How to automatically apply dark mode CSS styles to the website when the user's system theme is changed to dark mode?

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

6
Comments 1
3 min read
How to change the color or the accent color of the checkbox input HTML element on a webpage using CSS?

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

41
Comments
2 min read
Use margin-inline-start CSS property instead of margin-left for better internationalization

Use margin-inline-start CSS property instead of margin-left for better internationalization

3
Comments
3 min read
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 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 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 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
Use margin-inline-end CSS property instead of margin-right for better internationalization support

Use margin-inline-end CSS property instead of margin-right for better internationalization support

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 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 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 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 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 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
đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.