🌐
W3Schools
w3schools.com › css › css_examples.asp
CSS Examples
Responsive grid view Responsive grid view with breakpoints Typical breakpoints Media query orientation: portrait / landscape Hide elements on different screen sizes Change font size on different screen sizes Respect user preferences Responsive image: width property Responsive image: max-width property Responsive image on responsive webpage Background image and background-size: contain Background image and background-size: 100% 100% Background image and background-size: cover Change background image depending on browser width Change background image with HTML picture element Responsive video: width property Responsive video: max-width property Responsive video on responsive webpage Responsive framework: W3.CSS Responsive framework: Bootstrap
🌐
DevSnap
devsnap.me › css-code-examples
CSS Code Examples
Curated lists of 100% free CSS code examples.
🌐
Codeconvey
codeconvey.com › home
350+ HTML / CSS Examples with Source Code & Tutorial
Codeconvey is a blog where you can get HTML, CSS examples with source code & tutorial. You will also get free source code file & demo.
🌐
W3C
w3.org › Style › Examples › 011 › firstcss.en.html
Starting with HTML + CSS
In HTML, hyperlinks are created with <a> elements, so to specify the color, we need to add a style rule for “a”. To differentiate between visited and unvisited links, CSS provides two “pseudo-classes” (:link and :visited). They are called “pseudo-classes” to distinguish them from class attributes, that appear in the HTML directly, e.g., the class="navbar" in our example.
🌐
FreeFrontend
freefrontend.com › css-code-examples
CSS Examples
February 2, 2025 - The power of CSS Grid and Flexbox ... forms and cards, are optimized using CSS variables and pseudo-elements, ensuring easy theming and clean code. These examples serve as a versatile toolkit for solving any frontend challenge without relying on JavaScript....
🌐
Htmlandcssbook
htmlandcssbook.com › code-samples
HTML & CSS code samples and examples to accompany book
You can try the code for all examples in the book in your browser by clicking on the chapter numbers. Or download all the code shown in the book using the orange button. Click here for the view source example.
🌐
GitHub
github.com › zxuqian › html-css-examples
GitHub - zxuqian/html-css-examples: A collection of HTML and CSS examples, including effects and UIs. · GitHub
Text in videos and codes are primarily in Chinese, But you can use this repository without knowing Chinese. Just read the critical part. You can use this repository for inspirations and cheatsheets. Online Demo: https://zxuqian.github.io/html-css-examples/ Each folder contains the source code of HTML and CSS examples, including:
Starred by 991 users
Forked by 375 users
Languages   HTML 61.3% | CSS 25.7% | JavaScript 13.0%
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Learn_web_development › Getting_started › Your_first_website › Styling_the_content
CSS: Styling the content - Learn web development | MDN
In the previous example, it is the space around the paragraph text. ... display: The display mode of an element (which basically refers to how it appears or is laid out on the web page). ... Add the provided CSS code to the bottom of your style.css file. Save the file and refresh your browser to see how the CSS has affected the HTML rendering. Read the provided explanation to help you understand how the CSS works. If you are feeling adventurous, experiment with changing the property values to further customize your page.
🌐
CodePen
codepen.io › sanjanadesai › pen › bQYRxQ
Advanced CSS Code Examples:
In CodePen, whatever you write ... goes within the <body> tags in a basic HTML5 template. If you need things in the <head> of the document, put that code here. ... The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https. ↑ Insert the most common viewport meta tag · CSS preprocessors ...
Find elsewhere
🌐
Programiz
programiz.com › css › syntax
CSS Syntax (With Examples)
<html lang="en"> <head> <link rel="stylesheet" href="style.css" /> <title>Browser</title> <style> h1,p { color: red; font-size: 20px; background-color: yellow; } </style> </head> <body> <h1>This is the heading</h1> <p>This is a paragraph</p> <div>This is a div</div> </body> </html> ... We can ...
🌐
Reddit
reddit.com › r/web_design › looking for examples of css eyecandy
r/web_design on Reddit: Looking for examples of css eyecandy
August 16, 2020 -

I've been whipping up simple html/css/Javascript sites lately as a hobby. It's been fun to try to challenge myself to get creative by making lots of different sites, and making new sites to try out different ideas.

Can you guys recommend any sites in particular that are examples of fun / creative / beautiful html/css sites?

For instance, I got into the animations part of css / javascript and am sure there have been some really cool sites people have made.

🌐
Simple.css
simplecss.org › demo
Simple.css Demo | Simple.css
This page is a demonstration of the elements that can be formatted using Simple.css. Each section includes a code block on how to include it in your site’s design.
🌐
freeCodeCamp
freecodecamp.org › news › css-example-css3
The Best CSS Examples and CSS3 Examples
November 18, 2019 - CSS breakpoints are useful when you want to update styles based on the screen size. For example, from a device measuring 1200px width and above, use the font-size: 20px;, or else use the font-size: 16px;. What we have started with is from devices greater than 1200px, a common laptop screen’s width.
🌐
GitHub
github.com › mdn › css-examples
GitHub - mdn/css-examples: Code examples that accompany the MDN CSS documentation · GitHub
You can also find versions that show the same timing function used with transitions, and used with the Web Animations API. The "counter-style-demo" directory contains a demo for the @counter-style documentation. See the live demo here. The "moz-context-properties" directory contains a demo for the -moz-context-properties documentation. See the live demo here. The "editable-examples" directory contains CSS examples that are intended to be embedded in MDN pages as live editable samples.
Starred by 646 users
Forked by 834 users
Languages   HTML 80.7% | JavaScript 14.7% | CSS 4.6%
🌐
Quackit
quackit.com › css › examples
CSS Examples
Free CSS examples — copy & paste code for your website.
🌐
GeeksforGeeks
geeksforgeeks.org › css › css-examples
CSS Examples - GeeksforGeeks
July 23, 2025 - CSS Examples showcase various styling techniques for HTML elements. They display properties, selectors, and functions that enhance design and creativity. This section offers categorized programming examples that cover properties, selectors, and functions.
🌐
Tutorial Republic
tutorialrepublic.com › css-examples.php
CSS3 Examples - Tutorial Republic
A collection of CSS3 examples covering topics like color, background, fonts, alignment etc. to help you understand how CSS properties are used to style web pages.
🌐
BitDegree
bitdegree.org › learn › css-code
CSS Code Examples: Comprehensive List Of Various CSS Examples
December 14, 2018 - Set all CSS properties that make up CSS box model Compare elements with and without padding Add box-sizing: border-box to manage dimensions of certain elements Apply box-sizing: border-box to all elements at once Create an element with resizable width Create an element with resizable height Create an element with resizable width and height Disable resizing on elements that are resizable by default · The following CSS code examples show the ways to control the outline property.
🌐
W3Schools
w3schools.com › w3css › w3css_examples.asp
W3.CSS Examples
W3.CSS Examples W3.CSS Demos W3.CSS Templates W3.CSS Certificate ... Containers Containers with color Container header using <div> Container header using <header> Container footer using <div> Container footer using <footer> Container <article> and <section> Container with <div> elements Container with semantic elements Container padding Container with headers and paragraphs