Creating Your Own Webpage COSC 1301. Cascading Stylesheets Think of: HTML: content of your webpage HTML has tags CSS: presentation and appearance of your.

Slides:



Advertisements
Similar presentations
CSS Títol pàgina. CSS Títol "estil.css" );
Advertisements

Web Engineering 1 Ishaq Khan Shinwari MCS City University Peshawar.
/k/k 1212 Cascading Style Sheets Part one Marko Boon
Cascading Style Sheets (CSS): Pixel-Level Control with HTML Ease
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.
Cascading Style Sheets By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
Measurement Many CSS properties (values within the declaration) require that you specify a unit of measurement, such as spacing between elements, border.
Week 9 Using the Box Properties. 9-2 The CSS Visual Formatting Model Describes how the element content boxes should be displayed by the browser –Based.
Cascading Style Sheets (Formatting. Slide 2 Lecture Overview At this point, you have learned how and where to create styles You have not learned much.
Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
Cascading Style Sheets Please use speaker notes to get complete information! Cascading Style Sheets.
CASCADING STYLE SHEETS CSS. 2 What CSS means?  CSS is an extension to basic HTML that allows you to style your web pages.  It separates the part that.
Text Properties, Line Box, CSS. Text Properties Properties related to the display of text. Text-align : left, right, center I like FSU!
Cascading Style Sheets SP.772 May 6, CSS Useful for creating one unified look for an entire web site. Helps to seperate style from content. Can.
CSE CASCADING STYLE SHEETS CSS Faculty of Computer Science and Engineering.
Workshop: CSS-Part I Cascading Style Sheets add style to your HTML web pages.
More HTML Chapter 4. 2 Nesting Tags How do you write the following in HTML? The wrong way: This is really, REALLY fun ! Tags must be correctly nested.
3.1 Cascading Style Sheets. Motto Fashions fade, style is eternal. —Yves Saint Laurent.
Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
Selectors thru Borders. CSS – Cascading Style Sheets – is a way to style HTML HTML is the content base of a web page CSS provides the presentation qualities.
CSS1-1 Cascading Style Sheets (CSS) Xingquan (Hill) Zhu
HIGHER COMPUTING CSS. WHAT IS CSS? CSS: Cascaded Style Sheets used to separate a web site’s content(information) from its style(how it looks).
CompSci Today’s topics Networks & the Internet Basic HTML ä The basis for web pages ä “Almost” programming Upcoming ä Connections ä Algorithms.
CSS Dvijesh Bhatt.
Cascading style sheets (CSS)
Principles of Web Design 6 th Edition Chapter 10 – Data Tables.
1.NET Web Forms CSS: Style Sheets © 2002 by Jerry Post.
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
Cascading Style Sheets CSS. CSS - Structure Declaration block Property: identifies what to change Value: how to change it Selector – example h1{ font-size:
1 Cascading Style Sheets (CSS) Part 2. 2 The Sources of Style Sheets.
INTRODUCTION TO HTML5 Styling Text. Change the Font Size  You can use the font-size property to change the font size for a document’s text.  Instead.
Chapter 12 Cascading Style Sheets: Part II The Web Warrior Guide to Web Design Technologies.
CSS – Cascading Style Sheets Fred Durao
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
ALBERT WAVERING BOBBY SENG. Week 2: HTML + CSS  Quiz  Announcements/questions/etc  Some functional HTML elements.
Stylin’ with CSS Monday October 8 th and Tuesday October 9 th.
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.
 2008 Pearson Education, Inc. All rights reserved Cascading Style Sheets™ (CSS)
 Cascading Style Sheets (CSS) ◦ Used to specify the presentation of elements separately from the structure of the document.  Inline style ◦ declare.
Advanced Web Development Instructor: Thomas Bombach.
A really fairly simple guide to: mobile browser-based application development (part 2, CSS) Chris Greenhalgh G54UBI / Chris Greenhalgh
CSS with XHTML Please use speaker notes for additional information!
3. Cascading Style Sheets (CSS) M. Udin Harun Al Rasyid, S.Kom, Ph.D Lab Jaringan Komputer.
Cascading Style Sheets Objective: Create an external style sheet, embedded style sheet, and an inline style to change the look and feel of a web site.
Cascading Style Sheets Eugenia Fernandez IUPUI. CSS Purpose CSS allow you to specify the style in which your XML elements are displayed. CSS were originally.
1 CS428 Web Engineering Lecture 08 Border, Margin, Padding … (CSS - III)
Copyright © 2006, Jumail, FSKSM, UTM Slide 1 Cascading Style Sheets (CSS)
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  CSS Box Model  CSS properties for border  CSS properties for.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Cascading Style Sheets.
CSS – Cascading Style Sheets
5 th ed: Chapter 4 4 th ed: Chapter 5 SY306 Web and Databases for Cyber Operations Slide Set #4: CSS.
CSS properties Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan 1.
Developing Web Applications with HTML and CSS “Selectors and Properties”
Web Design (14) CSS Formatting Text. Formatting Text In Brackets, go to your ‘externalcss’ website and find the ‘formattingtext’ page. Use the ‘main’
CSS Cascading Style Sheets *referenced from
CSS Table Styling. Up to this point, as we haven't applied any CSS styling to our tables, our example tables have not been too pleasing to the eye. CSS.
Creating Layouts with CSS. Span tag Here is some underlined text. Here is some blinking text. Here's some bold text.
Font-Family, Color and Background. Basics  CSS rule: Selector (multiple separated by, ) Declaration (multiple separated by ; ) Example: p { color: red;
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
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.
( Cascading style sheet )
Creating Your Own Webpage
Cascading Style Sheets
Introduction to Web programming
The Internet 10/13/11 The Box Model
Stylin’ with CSS.
Stylin’ with CSS.
Cascading Style Sheets
Stylin’ with CSS.
Cascading Style Sheets™ (CSS)
Presentation transcript:

Creating Your Own Webpage COSC 1301

Cascading Stylesheets Think of: HTML: content of your webpage HTML has tags CSS: presentation and appearance of your webpage CSS has selectors We focus on HTML selectors – names of HTML tags CSS: For an HTML element, assign a value to a property Format: For each selector, the properties/values are enclosed in curly braces: property : value ;

External CSS File Ends in.css extension Add a link to file style.css in header of your HTML file:

Example: style.css body { background-color: #CCFFFF; font-size: 2em; } p { color: red; text-align: center; } a { color: blue; } Background color for body is an aqua color, and font-size is 2 times the default. Text in paragraphs will be red, and will be centered. Text in anchors will be blue.

Another Webpage This is my title! All About Me Favorite Foods pesto sushi pancakes Favorite Websites Slashdot St. Edward's

Some Units px: pixels em: multiple of current font size 2em is 2 times the current font size pt: points %: percentages in: inches

Colors Predefined includes: aqua, black, blue, fuchsia, gray, green, lime, navy, maroon, orange, olive, purple, teal, silver, white, gold, yellow Specify as: rgb(0, 255, 0) rgb(0%, 100%, 0%) #00ff00 Can select a color (for text) and a background color: h1 { color: yellow; background-color: #CCFFFF; }

Text Properties font-family Values: arial, Helvetica, serif, verdana font-size Values: %, em, px font-weight Values: bold, normal, light, bolder, lighter font-style Values: italic, normal text-transform Values: capitalize, uppercase, lowercase capitalize: capitalizes first letter of every word uppercase: every letter capitalized

Text Alignment Property: text-align Values: left, right, center

Margins, Borders, Padding, Oh My An element is surrounded by a padding box Which is surrounded by a border box Which is surrounded by a margin box Value of margin, padding: describes the width of the space around Example: h2 { font-size: 1.5em; margin: 20px; padding: 40px; }

Border Properties Property: border-style Values: none (no border), dotted, dashed, solid, groove, ridge Property: border-color Property: border-width Values: thin, medium, thick Properties: border-top-width, border-bottom-width, border-left- width, border-right-width

Border Example h1 { border-style: dotted; border-width: 2px; border-left-width: 10px; border-right-width: 10px; border-color: teal; }

Example table {border-style: solid; color: #333333; border-width: 5px; border-color: #FF0000; width: 100%; height: 20%; text-align: center; border-collapse: collapse; } tr { border-style: dashed; border-width: 2px; border-color: #DD0000; } td{ border-style: solid; border-width: 2px; } th { border-style: solid; border-width: 2px; }