Stanford University
web.stanford.edu › class › cs142 › lectures › CSS.pdf pdf
CS142 Lecture Notes - CSS Cascading Style Sheets (CSS) Mendel Rosenblum 1
CS142 Lecture Notes - CSS · Cascading Style Sheets · (CSS) · Mendel Rosenblum · Driving problem behind CSS · What font type and size does <h1>Introduction</h1> generate · Answer: Some default from the browser (HTML tells what browser how) · Early HTML - Override defaults with attributes ...
W3Schools
w3schools.com › css › css_examples.asp
CSS Examples
Links Link Buttons Code Challenge CSS Lists · Styling Lists Code Challenge CSS Tables · Table Borders Table Size Table Alignment Table Styling Table Responsive Code Challenge CSS Display · Display Visibility / Hide Code Challenge CSS Max-width · Max-width Code Challenge CSS Position ·
Videos
CSS List Styles Tutorial for Beginners - YouTube
How to create and style lists with HTML and CSS
01:00:00
Learn CSS in 1 hour 🎨 - YouTube
09:16
Customizing the Squarespace Simple List with CSS - YouTube
09:16
Customizing the Squarespace Simple List with CSS - YouTube
Quackit
quackit.com › css › codes
CSS Codes
This section contains free CSS codes that you can copy/paste into your own website or blog.
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Reference
CSS reference - CSS | MDN
Use this CSS reference to browse an alphabetical index of all of the standard CSS properties, pseudo-classes, pseudo-elements, data types, functional notations and at-rules. You can also browse key CSS concepts and a list of selectors organized by type. Also included is a brief DOM-CSS / CSSOM ...
Stony Brook University
www3.cs.stonybrook.edu › ~pramod.ganapathi › doc › CSE102 › CSE102-CheatSheetCSSLong.pdf pdf
CSS Cheatsheet
www.hostinger.com · BACKGROUND · BORDER · TABLE · BOX MODEL · TRANSITIONS · COLOR · ANIMATIONS · COLUMN · SPEECH
University of Toronto
cs.toronto.edu › ~mashiyat › csc309 › Lectures › 2.3-css.pdf pdf
CASCADING STYLE SHEETS (CSS)
CASCADING STYLE SHEETS · (CSS) · Overview · ¨ Basic CSS · ¨ CSS Properties · ¨ More CSS Syntax · Basic CSS · The good, the bad and the… ugly · ¨ Tags such as b, i, u, and font are discouraged in · strict XHTML
HTML Cheat Sheet
htmlcheatsheet.com › css
CSS Cheat Sheet - Interactive, not a PDF | HTMLCheatSheet.com
Interactive CSS border and outline generator. ... Generate border radius setting the curve for each corner in pixels. ... Style sheet to reset to assure uniform look in all browsers. To be added at the start of the stylesheet. html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,
DevSnap
devsnap.me › css-code-examples
CSS Code Examples
Curated lists of 100% free CSS code examples.
TutorialsPoint
tutorialspoint.com › css › css_tutorial.pdf pdf
Preview CSS Tutorial (PDF Version)
CSS Colors - Hex Codes ..........................................................................................................................
W3Schools
w3schools.com › CSSref › index.php
CSS Reference
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, PHP, Python, Bootstrap, Java and XML.
Netlifyusercontent
cloud.netlifyusercontent.com › assets › 344dbf88-fdf9-42bb-adb4-46f01eedd629 › d7fb67af-5180-463d-b58a-bfd4a220d5d0 › css3-cheat-sheet.pdf pdf
css3-cheat-sheet.pdf
normal | none | list-item · float-offset · length length · GRID POSITIONING · grid-columns · none | inherit · [ length percentage relative · length ] grid-rows · none | inherit · [ length percentage relative · length ] Cascading Style Sheets (CSS 3) OUTLINE ·
1Keydata
1keydata.com › css-tutorial › codes.php
CSS Codes - 1Keydata CSS Tutorial
Lists all CSS codes discussed in this tutorial. Visit 1Keydata now to learn CSS.
FreeFrontend
freefrontend.com › css-code-examples
CSS Examples
February 2, 2025 - Explore a comprehensive library of CSS patterns: modern Grid layouts, creative animations, UI components, and visual effects.
Top answer 1 of 6
134
Sharing an example I use in website, I do use following pre in my stylesheet:
pre {
background: #f4f4f4;
border: 1px solid #ddd;
border-left: 3px solid #f36d33;
color: #666;
page-break-inside: avoid;
font-family: monospace;
font-size: 15px;
line-height: 1.6;
margin-bottom: 1.6em;
max-width: 100%;
overflow: auto;
padding: 1em 1.5em;
display: block;
word-wrap: break-word;
}
This gives the following results:

Disclaimer: In my leisure time, I have spend few hours to update this CSS with a bit extra features like code lines and code Copy button using CSS with JavaScript to my personal use that I like to share. Please use as you like github source code. To see a code example in real world, check this article from my blog that show how I use the code sample.
2 of 6
53
This javascript library seems excellent:
https://highlightjs.org/
UPDATE: I also used this on my Tumblr-based blog because it was easiest to deploy:
https://github.com/google/code-prettify
Programiz
programiz.com › css › syntax
CSS Syntax (With Examples)
CSS syntax is used to add CSS to an HTML document. In this tutorial, you will learn CSS syntax with the help of examples.
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
CSS (Cascading Style Sheets) is the code that styles web content. This article walks you through a basic understanding of CSS — how it works and how to improve the look and feel of the content structure you created in the previous article.