Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April 2013.

Slides:



Advertisements
Similar presentations
Table, List, Blocks, Inline Style
Advertisements

CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Cascading Style Sheets
Cascading Style Sheets
Layout using CSS. Using multiple classes In the head:.important{font-style:italic;}.title{color:red;} In the body: Here's a type of paragraph that is.
Today CSS HTML A project.
Making Things Look Nice: Visual Appearance and CSS CMPT 281.
Introduction to CSS. What is CSS? A CSS (cascading style sheet) file allows you to separate your web sites (X)HTML content from it’s style. Use your (X)HTML.
INTRODUCTORY Tutorial 7 Creating Liquid Layouts. XP Objectives Discern the differences among various types of layouts Create a liquid layout Create a.
Recognizing the Benefits of Using CSS 1. The Evolution of CSS CSS was developed to standardize display information CSS was slow to be supported by browsers.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
Class four: the box model and positioning. is an HTML tag which allows you to create an element out of inline text. It doesn’t mean anything! try it:
Beginning Web Site Creation: Dreamweaver CS4. XHTMLCSS  Describes the structure  Content  Collection of styles  Formatting body { background-color:
Lecture Cascading Style Sheets (CSS) Internal Style Sheets Classes.
CSS, cont. October 7, Unit 4. Generic Containers Currently, we know how to modify the properties of HTML tags using style sheets But, we can only modify.
Cascading Style Sheet (CSS) Instructor: Dr. Fang (Daisy) Tang
4.01 Cascading Style Sheets
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
Principles of Web Design 6 th Edition Chapter 4 – Cascading Style Sheets.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
Chapter 11 Cascading Style Sheets: Part I The Web Warrior Guide to Web Design Technologies.
Cascading Style Sheets Dreamweaver. Styles Determine how the HTML code will display Determine how the HTML code will display Gives designers much more.
XP Tutorial 7New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks.
Week 4.  Three ways to apply CSS: Inline CSS Internal style sheets ( header style information) External style sheets.
The Characteristics of CSS
HTML & CSS.
Cascading Style Sheets CSS.  Standard defined by the W3C  CSS1 (released 1996) 50 properties  CSS2 (released 1998) 150 properties (positioning)  CSS3.
Cascading Style Sheets. Defines the presentation of one or more web pages Similar to a template Can control the appearance of an entire web site giving.
Learning HTML. HTML Attributes HTML elements can have attributes Attributes provide additional information about an element Class – specifies a class.
IDs versus Classes Naming Your Tags for Maximum Functionality.
1 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles are normally stored in Style Sheets  Styles.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
WRT235: Writing in Electronic Environments CSS Classes, IDs, divs.
CSS CSS is short for C ascading S tyle S heets. It is a new web page layout method that has been added to HTML to give web developers more control over.
CSS Basic (cascading style sheets)
Introduction to CSS. What is CSS?  Cascading Style Sheets  Used for styling HTML  Also important in javascript and jquery for selectors  External.
Cascade Style Sheet Introduction. What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Tutorial 7.
Lesson 03 // Cascading Style Sheets. CSS Stands for Cascading Style Sheets. We’ll be using a combination of Html and CSS to create websites. CSS is a.
Advanced Web Development Instructor: Thomas Bombach.
Week 8 – Part 2 Page Layout Basics Key Concepts 1.
DIV, Span, CSS.
Cascading Style Sheets Level 2. Course Objectives, Session 1 Level 1 Quick Review Chapter 8: Adding Graphics to Web Pages Chapter 9: Sprucing Up Your.
3. Cascading Style Sheets (CSS) M. Udin Harun Al Rasyid, S.Kom, Ph.D Lab Jaringan Komputer.
Cascading Style Sheets CSS.  Standard defined by the W3C  CSS1 (released 1996) 50 properties  CSS2 (released 1998) 150 properties (positioning)  CSS3.
Cascading Style Sheets (CSS). A style sheet is a document which describes the presentation semantics of a document written in a mark-up language such.
© Anselm SpoerriDigital Media Production Digital Media Production Info + Web Tech Course Anselm Spoerri PhD (MIT) Rutgers University
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
Web Design (12) CSS Introduction. Cascading Style Sheets - Defined CSS is the W3C standard for defining the presentation of documents written in HTML.
 Look especially at › File Tips and Shortcuts › Student video.
How to… Cascading Style Sheets. How to Insert a Style Sheet When a browser reads a style sheet, it will format the document according to it. There are.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
NASRULLAHIBA.  It is time to take your web designing skills to the next level with Cascading Style Sheets (CSS). They are a way to control the look and.
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, we’ll cover:  Brief CSS review  Creating sections with the tag  Creating inline.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
CONFIGURING COLOR AND TEXT WITH CSS Chapter 3. Cascading Style Sheets (CSS) Used to configure text, color, and page layout. Launched in 1996 Developed.
Cascading Style Sheets (CSS) Internal Style Sheets Classes
Working with Cascading Style Sheets
4.01 Cascading Style Sheets
>> Introduction to CSS
Cascading Style Sheets
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Cascading Style Sheets
Web Design and Development
4.01 Cascading Style Sheets
Presentation transcript:

Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April

 Moving from Photoshop to Fireworks to a web prototype  videos/fireworks-pro-series-from-photoshop-to- fireworks-to-the-web/ videos/fireworks-pro-series-from-photoshop-to- fireworks-to-the-web/

 CSS stands for Cascading Style Sheets and controls the style and formatting of your content.  CSS can allow for different viewing on different platforms including mobile, text readers and what your page will look like when printed.

 CSS Zen Garden

 Embedding an external style sheet This goes in the HEAD section of your HTML file.

All CSS is written in the format: selector { property: value }

 When you nest one element inside another, the nested element will inherit the properties assigned to the containing element. Unless you modify the inner elements values independently.  A font declared in the body will be inherited by all text in the file no matter the containing element, unless you declare another font for a specific nested element.

The id Selector  The id selector is used to specify a style for a single, unique element.  The id selector uses the id attribute of the HTML element, and is defined with a "#”.  HTML: CSS: #wrapper{ property:value; }

The class Selector  The class selector is used to specify a style for a group of elements. Unlike the id selector, the class selector is most often used on several elements.  This allows you to set a particular style for any HTML elements with the same class. The class selector uses the HTML class attribute, and is defined with a "."

 Example HTML: CSS:.column{ property:value; }

 Use an ID selector for elements that only appear once per page (eg header, menu, footer etc)  Use a class selector for elements that will be used multiple times (eg. Paragraphs, columns etc)

 color:#ffffff  background:url(image.jpg) #ffffff;  font-family:Verdana, Geneva, sans-serif;  font-size:10px;  margin-left:auto; Commenting within CSS /* This is a comment */  You can find a more comprehensive list here:

DIV tags You can style a DIV tag and use CSS that affects all the content within it. For example Site contents go here The CSS file contains this: #container{ width: 500px; margin-left: auto; margin-right:auto; padding: 20px; border: 1px solid #666; background: #000000; }

Spans  Spans are very similar to divisions except they are an inline element versus a block level element. No line break is created when a span is declared.  You can use the span tag to style certain areas of text, as shown in the following: This text is italic

Combining selectors: h1, h2, h3, h4, h5, h6 { color: #009900; font-family: Georgia, sans-serif; }

Creating a horizontal navigation bar  When creating a horizontal navigation bar, best practice is to use an unordered HTML list, styled with CSS. Sounds ridiculous, but with a few css styles, it works. We need to style both the list itself ( ) and the list items ( ) For example...  ul#navigation { float:left margin: 0; padding: 0; width: 100%; background-color: #039;  }

 List items are normally block elements, but by switching the display from block to inline, you force the list elements to line up next to one another. ul#navigation li { display: inline; }  The following code changes the link colour when you hover over. ul#navigation li a {color:#333; } ul#navigation li a:hover { color: #999;}

 Absolute positioning allows you to set a position to the pixel.  Can use absolute positioning to make divs overlap.  Eg  Floats are used with dynamic content or flexible layouts.

Source:

 Read me!

 Google have a range of webfonts that are easy to use within your website. You can download the font to design with it in Photoshop and they also give you the code to stick into your HTML/CSS files to implement it.

 Create a new HTML & CSS file and link them together.  In the HTML file, create a header div, a navigation div, 3 columns of content and a footer. (With dummy content please!)  In CSS, use floats to position all of your content.  Use a minimum of 10 CSS styles to style the look of your content.  Use a font from Google Fonts

 