This project-based eBook will introduce you to Cascading Style Sheets (CSS), a stylesheet language used to control the presentation of websites, by building a personal website using our demonstration site as a model. Though our demonstration site features Sammy the Shark, you can switch out Sammy's information with your own if you wish to personalize your site.
The first half of this book will introduce CSS through hands-on exercises and the second half of the tutorial series will provide steps for recreating the demonstration website.
This open book is licensed under a Creative Commons License (CC BY-NC-SA). You can download How To Build a Website With CSS and HTML ebook for free in PDF format (13.2 MB).
Table of Contents
A Brief Introduction To CSS
How To Set Up Your CSS and HTML Practice Project With a Code Editor
How To Understand and Create CSS Rules
How To Declare Values For Multiple Properties In a CSS Rule
How To Style Images With CSS
How To Create Classes With CSS
How To Create IDs with CSS
How To Create Pseudo-classes With CSS
How To Style the HTML <div> element with CSS
How To Adjust the Content, Padding, Border, and Margins of an HTML Element With CSS
How To Set Up Your CSS and HTML Website Project
An Overview of Our Demonstration HTML and CSS Website
How To Style the Body of a Website With CSS
How To Build the Header Section of Your Website With CSS
How To Build the About Me Section of Your Website With CSS
How To Build a Tiled Layout With CSS
How To Add a Resume or Employment History Section To Your Website With CSS
How To Add Your Educational History and Skills To Your Website Using CSS
How To Create a Featured Quote Box On Your Website Using CSS
How To Create a Static Footer With HTML and CSS