CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, we’ll cover:  Brief CSS review  Creating sections with the tag  Creating inline.

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

Table, List, Blocks, Inline Style
Introduction to HTML & CSS
CSS-Formatting Review Cascading Style Sheets addstyle to your HTML web pages.
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: Basics I450 Technology Seminar Copyright 2003, Matt Hottell.
Today CSS HTML A project.
HTML Overview - Cascading Style Sheets (CSS). Before We Begin Make a copy of one of your HTML file you have previously created Make a copy of one of your.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
1 Lesson 5 Introduction to Cascading Style Sheets HTML and JavaScript BASICS, 4 th Edition Barksdale / Turner.
กระบวนวิชา 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.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
16 HTML Tables and Frames Section 16.1 Create a basic table using HTML Define borders Merge cells Align content in tables Section 16.2 Create a frames-based.
Lecture Cascading Style Sheets (CSS) Internal Style Sheets Classes.
Cascading Style Sheets Controlling the Display Of Web Content.
CSS Basics LIS Webteam April 8, Why CSS? What’s wrong with HTML? Structure vs Style Early web design used hacks to style webpages with HTML – like.
Cascading Style Sheets Controlling the Display Of Web Content.
4.01 Cascading Style Sheets
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.
Tutorial 6 Creating Tables and CSS Layouts. Objectives Session 6.1 – Create a data table to display and organize data – Modify table properties and layout.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
Cascading Style Sheets (CSS) Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
Cascading Style Sheets Dreamweaver. Styles Determine how the HTML code will display Determine how the HTML code will display Gives designers much more.
Dreamweaver -- CSS. Dreamweaver -- MX New icons are added in MX Most of the features commonly used in web design, and are same as FrontPage. New feature.
Images (1) Three most popular formats – Graphics Interchange Format (GIF) – Joint Photographic Experts Group (JPEG) – Portable Network Graphics (PNG) –
Doman’s Sections Information in this presentation includes text and images from
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
CSS Basic (cascading style sheets)
Cascade Style Sheet Introduction. What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added.
Cascading Style Sheets Part 1. CSS vs HTML HTML: Originally intended to markup structure of a document (,...,,,,,...) CSS Developing technology, CSS1,
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
Cascading Style Sheets Dreamweaver. Styles Determine how the HTML code will display Determine how the HTML code will display Gives designers much more.
>> HTML: Structure Elements. Elements in HTML are either Inline or Block. Block-level Elements – Begins on a new line – Occupy the whole width – Stacks.
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
Interface Programming 1 Week 3. Interface Programming 1 CALENDAR.
DIV, Span, CSS.
Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April 2013.
Cascading Style Sheets CSS. Source W3Schools
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  float & clear  display & visibility.
Cascading Style Sheets
Are You Smarter Than a 5 th Grader? 1,000,000 5th Grade HTML 5th Grade Syntax 4th Grade HTML 4th Grade Syntax 3rd Grade HTML 3rd Grade Syntax 2nd Grade.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
MTA EXAM HTML5 Application Development Fundamentals.
Intro to CSS Christy. What is CSS?  Cascading Style Sheets  Separates content from presentation  Defines how to display HTML elements  Provides control.
CSS IS A LANGUAGE DESIGNED TO TARGET HTML ELEMENTS AND NODES BY TYPE, CLASS, ID AND VALUE, AND CHANGE THEIR VALUES CSS – change how your HTML looks and.
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.
Chapter 1: Intro to HTML Section 1: HTML Structure Presentation Section 2: Layout of an HTML File Section 3: Working with Lists & Tables Section 4: HTML.
Unit 3 - Review. Topics 1. Tag, Attribute, Value 2. CSS Rule Syntax + link 3. Categories of Selectors 4. Inline vs Block Tags 5. CSS Layout 6. CSS Box.
Cascading Style Sheets - CSS December 20, 2008 NTPCUG Expression Web SIG.
CASCADING STYLE SHEET CSS. CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem.
Cascading Style Sheets (CSS) Internal Style Sheets Classes
4.01 Cascading Style Sheets
CSS Layouts: Positioning and Navbars
Semester - Review.
Unit 3 - Review.
Cascading Style Sheets
>> Introduction to CSS
IS 360 Declaring CSS Styles
Cascading Style Sheets (Layout)
Cascading Style Sheets
CASCADING STYLE SHEET CSS.
Website Design 3
Styles and the Box Model
IS 360 Understanding CSS Selectors
Web Design and Development
Exercise 9 Skills You create and use styles to create formatting rules that can easily by applied to other pages in the Web site. You can create internal.
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
HTML / CSS Mai Moustafa Senior Web Designer eSpace eSpace.
4.01 Cascading Style Sheets
Presentation transcript:

CSS Layout Cascading Style Sheets

Lesson Overview  In this lesson, we’ll cover:  Brief CSS review  Creating sections with the tag  Creating inline sections with tag  Block elements vs. inline elements

CSS Review

CSS – Rules Review  CSS Rule Syntax has 3 parts:  Selector  Property  Value Selector PropertyValue Rule

What are the 4 types of selectors?  Any HTML tag (p, table, h1, etc.) – the rule applies to ALL tags of that type on the page  A #idName given to a tag – the rule only applies to the ONE tag on the page with that ID  A.className given to any tags on the page  A pseudo class such as:  a:hover{color:red;} /* hyperlink hover color */

CSS – tag What does it do for us? My title

Browser What will we see in the browser? How it works: Review mystyles.css #foo{ color:red; }.bar { color:blue; } h1.bar { bgcolor:yellow; } Hello World My header HTML File Hello World My header …

What we’ve done previously: Tables for layout Navigation links Content This required,, tags with lots of mental mapping and CSS rules No More! We’ll move to using blocks called divs requiring much less complexity

Where we’re going div block Steps: 1.Set width and height of each block 2.Set a property for side by side 3.Fill each with what you want Let's look at Amazon.com as an example

tag  Defines a division/block in an HTML page.  Most often used together with CSS to layout a web page " What's the fox say?

example  Say we are creating a web site for courses  We want a new section for each subject  Use a section for English, one for Math,...

Demo:  Follow along with me:  Create a new HTML page called layout.html  Create a new CSS page called layoutstyles.css  Add to the web page:  In your CSS file, give the div a background color  Keep an eye on its default behavior  Later we’ll adjust width and height

In class Exercise for  Add two sections with different background colors to this page  Define the background colors in your new layoutstyles.css  Remember:  div tags can have id or class attributes set like any other tag  When you have that working, show me  Then add more content inside the div, and set properties for border, background-image, etc.

tag  Defines an inline element used purely as a range for applying styles  Provides a way to add a “container” to a part of a text or a part of a document  You can use this container to add CSS styles to the content

example

Exercise for  Open layout.html  Add a section to text within a section  Define CSS styles for this section

Block vs. Inline Block Elements  Have line break before and after  Contain inline elements and other block elements  Examples:   ~ ,  ,, Inline Elements  Have no line break before and after  Contain text and other inline elements  Examples: 

Block vs. Inline  Block and inline elements flow through the HTML page differently  They therefore create different layouts  Different CSS styles need to be used to achieve desired layout  Block level elements normally start (and end) with a new line, when displayed in a browser whereas inline elements are normally displayed without line breaks.

Document flow – block element

Document flow – inline element

Document flow – combined

Exercise  Create a page that combines,, and other tags you already know  Give borders to the elements to show how the layout works.