Cascading Style Sheet List Properties Box Properties Pseudoclass

Slides:



Advertisements
Similar presentations
LIS650 lecture 4 Thomas Krichel today Advice CSS Properties –Box properties-- List properties –Table properties-- Classification properties.
Advertisements

LIS901N: Style sheet Thomas Krichel Style sheets Style sheets are the officially sanctioned way to add style to your document We will cover.
LIS650 lecture 4 Thomas Krichel today Advice CSS Properties –Box properties –List properties –Classification properties Fun with selectors.
HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.
DREAMWEAVER ‘ANATOMY’ EXPLAINED.
Web Pages Week 10 This week: CSS Next week: CSS – Part 2.
Today CSS HTML A project.
Presenter: James Huang Date: Sept. 26,  Introduction  Basics  Lists  Links  Forms  CSS 2.
CSS. Intro to CSS Cascading Style Sheets – styles and enhances appearance of webpage.css extension.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
Client-Side Internet and Web Programming
CSS(Cascading Style Sheets )
กระบวนวิชา 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.
CSS normally control the html elements. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet Internal style.
Tutorial 5 Working with the Box Model. XP Objectives Understand the box model Create padding, margins, and borders Wrap text around an image Float a block-level.
Tutorial 4 Formatting Text. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Create a spread heading Indent text Change the line spacing.
14-Jul-15 CSS Applications to XML. 2 A different emphasis CSS is the same for XML as it is for HTML, but-- HTML already does a pretty good job of layout.
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
Page Layout & Mobile Web Using columns, grid systems, etc… to layout sites for desktops and mobile.
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.
CSS Dvijesh Bhatt.
1Computer Sciences Department. And use
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorials 3 & 4: Working With CSS.
Introduction to Programming the WWW I CMSC Summer 2004 Lecture 7.
MySQL and PHP Review CSS. Cascading Style Sheet (CSS) Style sheets are files or forms that describe the layout and appearance of a document. Cascading.
ALBERT WAVERING BOBBY SENG. Week 3: CSS  Quiz  Announcements/questions/etc  Homework.
CSS Tutorial 1 Introduction Syntax How to use style specifications. Styles.
ECA225 Applied Interactive Programming Cascading Style Sheets, pt 1 ECA 225 Applied Online Programming.
>> The “Box” Model. Pre-requisite Create a new project in Netbeans called Week5 Create a new html file and name it box.html Create a new css file and.
CSS Class 2 -Add margins to elements on a page. -Set width and height of elements. - CSS shorthand properties for box model. -Style links. -Style tables.
Web Development & Design Foundations with HTML5 7th Edition
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  CSS Box Model  CSS properties for border  CSS properties for.
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
Copyright © Osmosys O S M O S Y SO S M O S Y S D e p l o y i n g E x p e r i e n c e & E x p e r t i s e™ CSS Training.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Cascading Style Sheets.
CIS 228 The Internet 10/18/11 Grouping XHTML. CSS Selectors Rule: selector-group { property-declaration* } Selector-group: selector *, Selector: simple-selector.
ECA 228 Internet/Intranet Design I Cascading Style Sheets.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
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.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 4 Formatting Text and Links.
1 Cascading Style Sheets
WebD Introduction to CSS By Manik Rastogi.
Semester - Review.
Unit 3 - Review.
>> The “Box” Model
Cascading Style Sheets (Formatting)
Cascading Style Sheets (Layout)
Introduction to web design discussing which languages is used for website designing
Chapter 7 Page Layout Basics Key Concepts
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5
The Internet 10/25/11 XHTML Tables
Cascading Style Sheets
CSS Applications to XML 19-Sep-18.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Cascading Style Sheet List Properties Box Properties Pseudoclass
CSS Borders and Margins.
Second CSS Lecture Applications to XML
Cascading Style Sheets
Cascading Style Sheet External Style Sheet Example
List Properties Box Properties Pseudoclass
Web Development & Design Foundations with HTML5
More CSS 22-Feb-19.
Web Development & Design Foundations with HTML5
CSS Applications to XML 20-May-19.
CSS Applications to XML 3-Jul-19.
Cascading Style Sheets
Cascading Style Sheets™ (CSS)
Presentation transcript:

Cascading Style Sheet List Properties Box Properties Pseudoclass External Style Sheet Example Introducing Class selector Class selector for a particular element Class selector for any element

List Properties list-style-image: url( ) list-style-type: disc, circle, square, decimal, lower-roman, upper-roman, lower-alpha, upper-alpha

Box Properties Width, Height Position: absolute, static, relative Top, Bottom, Left, Right Border-top, Border-left, Border-right, Border-bottom border-style: none, dotted, dashed, solid, double, groove, ridge Margin-left, Margin-right, Margin-top, Margin-bottom

Box Properties (Continued) Padding-left, Padding-right, Padding-top, Padding-bottom visibility: hidden, visible Z-index: …,-1, 0, 1, … Float: left, right, none Clear: left, right, none, both

Pseudoclass To define a style for a certain tag state With hyperlink there are 3 different state Hyperlink not yet visited a:link Hyperlink activated a:active Hyperlink already visited  a:visited When mouse is over the link  a:hover

Introducing Class Selectors Class selectors are user made selectors. Selectors represent html tag names or element. Class selector defines different style for the same type of html element

Class selector for a particular element To create the class selector Syntax: tagname.userdefinedNAME {……} Example: h1.left {text-align: left;} Example: h1.right {text-align: right;} To use the class selector created in previous step <h1 class=“left”>header is aligned left</h1> <h1 class=“right”>header is aligned right</h1>

Class selector for any element To define a style that can be used by all HTML elements, Syntax: .userdefinedNAME {…….} Example: .left {text-align: left;} To use the above class selector, <h1 class=“left”> header is aligned left</a> <p class=“left”> paragraph is aligned left</a>