HTML/CSS Code Snippets

Below are several brief how-to articles for implementing pleasing and useful styles  in Pressbooks. These were largely developed by staff and students working in the OER Design Studio — perhaps you will have something of your own to contribute!

Fix Padding/Margins Around Headings
Rounded Textbox Corners
Icons in Textbox Headers
Basic Accordion
Fancy Accordion (With Shading and Borders)
Left Bar Text Decoration
Figure (Gives Greater Control Over Captioning)
Hanging Indent (For APA References)
Rounded Image Borders
Table Template (Rounded corners, alternating row shading)
Rounded YouTube Video Embedding
Change Lightbox Background Colour
Format Headings
Editing Marks (Strikethrough, Underline)
Circle Text / Section
Bulleted and Numbered List Formatting
Quote Box
Table with Alternating Row Colours / TablePress Replacement
Banner Image Overlayed with Text

Attribution

Standard Practices and Workarounds” from BCcampus Open Education Publishing Style Guide by BCcampus OER Production Team is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

License

Icon for the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

Fanshawe OER Training Guide Copyright © 2024 by Fanshawe College is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, except where otherwise noted.

Share This Book