1 / 7

The Basics of Using Cascading Style Sheets (CSS)

Learn the basics of using Cascading Style Sheets (CSS) from John Sklar’s teachings based on Elizabeth Castro’s methods. Understand selectors, declarations, properties, and values to create compelling web designs. This guide covers how CSS works, choosing selectors, setting properties, and integrating CSS into your HTML documents effectively. Explore various CSS properties and resources such as HTMLhelp.com and W3.org for reference. Discover tips on applying CSS styles to multiple web pages and linking CSS files for efficient styling.

Télécharger la présentation

The Basics of Using Cascading Style Sheets (CSS)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The Basics of Using Cascading Style Sheets (CSS) by John Sklar Based on what Elizabeth Castro Taught me.

  2. A Basic Style has two parts • Selector – the element you wish to format. • Declaration – what you want it to do. • Property – the CSS property you want to set. • Value – What you want the property to be…

  3. The Declaration has 2 Parts • CSS Property – A list of what CSS can actually do • Value – What you want the formatting to look like

  4. So How Does It Work • Pick a selector • Set the properties • Put the whole thing in the <HEAD> • And then use the selector tag in your document. • You can specify a lot of different attributes but you will need a list.

  5. Google CSS Properties • Web Design Group: http://www.htmlhelp.com/reference/css/properties.html • Index  D O T  Css http://www.htmlhelp.com/reference/css/properties.html • WWW.W3.org http://www.w3.org/TR/REC-CSS2/propidx.html *http://www.w3schools.com/css/css_reference.asp *My personal favorite

  6. Apply Your Styles To A Site • If you have a lot of styles and you want to use them in several web pages, you can remove the styles from the page and save them in an ASCII or text file with a CSS extension. • This file should have not formatting but I suggest that you comment the file fully. • Use /* to start the comment and */ to end it.

  7. Link The CSS File • If your style sheet is called mystyles.css use code like this: <html> <head> <title>Style Demo - Linked</title> <link rel="stylesheet" type = "text/css" href="mystyles.css" /> </head> • If your style sheet is called mystyles.css use code like this: <html> <head> <title>Style Demo - Linked</title> <link rel="stylesheet" type = "text/css" href="mystyles.css" /> </head>

More Related