🍎
Introduction to Web Development
  • Introduction To Web Development
  • Tools
    • Notes: Web Development Process
    • Notes: Replit
    • Notes: GitHub
    • Notes: Replit + GitHub Integration
    • GitHub Pages Hosting
  • Week 1: HTML
    • Notes: HTML
    • Notes: Working With Images
    • Project: Hello World
    • Project: Subject of Interest
  • Week 2: CSS
    • Notes: CSS
    • Using CSS for Layout
      • Notes: Box Model
      • Notes: Flexbox
      • Notes: Responsive Layout
    • Project: Styling Subject of Interest
    • Project: Image Gallery
  • Week 3: JavaScript and HTML Forms
    • Notes: JavaScript
    • Notes: Processing HTML Forms with JavaScript
    • Project: Dynamic Style Change
    • Project: Mad Libs
  • Week 4: Web Site Using Bootstrap
    • Notes: Anatomy of a URL
    • Notes: Content
    • Notes: Bootstrap
    • Notes: Overriding Bootstrap
    • Notes: Favicons
    • Notes: License
    • StartBootstrap Templates
    • Project: Bootstrap Website
  • Wrap Up
  • Videos
Powered by GitBook
On this page
  • Adding CSS to Subject of Interest Project
  • Center Items on the Page
  • Applying CSS to Center the Content
  • Resources
  1. Week 2: CSS

Project: Styling Subject of Interest

PreviousNotes: Responsive LayoutNextProject: Image Gallery

Last updated 10 months ago

Adding CSS to Subject of Interest Project

In this project, we will add style, aka CSS, to the Subject of Interest Project completed in the HTML Chapter. We'll focus on a few efforts, but you are encouraged to try CSS, which is not mentioned in the list of requirements for this project.

The layout for the HTML Subject of Interest web page is left-aligned. The font is the browser's default, and its color is black. The background color is white. This is the default if no other CSS is applied. In this exercise, we will:

  • center all the elements on the page

  • add text and background colors

  • add font family

Center Items on the Page

Review the notes on Box Model and Flexbox.

Try these techniques by applying them to the HTML Assignment where you described a subject of interest.

Applying CSS to Center the Content

Resources

Study this and to visualize how the different ways of centering are applied. Use the resources below to make color and font changes.

code
web page
W3 Schools CSS Reference
MDN Reference
Left Aligned Subject of Interest
Centered Web Page