What to Style? Styles for elements establish consistency –Styles for HTML or body become the default –Only create styles for pre-defined elements* Styles.

Slides:



Advertisements
Similar presentations
CSS. Intro to CSS Cascading Style Sheets – styles and enhances appearance of webpage.css extension.
Advertisements

Very quick intro HTML and CSS. Sample html A Web Title.
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.
INTRODUCTORY Tutorial 7 Creating Liquid Layouts. XP Objectives Discern the differences among various types of layouts Create a liquid layout Create a.
With CSS, a color is most often specified by: a HEX value - like "#ff0000" an RGB value - like "rgb(255,0,0)" a color name - like "red“ Example h1.
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.
กระบวนวิชา 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.
Ch. 5 Web Page Design – Templates and Style Sheets Mr. Ursone.
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
Using Cascading Style Sheets CSS Structure. Goals Understand how contextual, class and ID selectors work Understand how contextual, class and ID selectors.
4.01 Cascading Style Sheets
HTML. Creating a Table Attributes: border: indicates the border type of the table Value: 0 (no border), 1, 2, etc. cols: indicates the number of columns.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
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 8: Enhancing a Web Site with Advanced CSS
Images: HTML and CSS. The Bells page without images in Source View and Design View.
 Insert a picture from a file  Move and delete images  Use the Picture Tools tab  Add styles, effects, and captions to images  Resize photos  Use.
Creating Tables in a Web Site Using an External Style Sheet
ULI101: XHTML Basics (Part III) Introduction to XHTML / Continued … Block-Level vs. Inline Elements (tags) Manipulating Text,  , Text Characteristics,,,,,,,,,,,,,,,
CHAPTER 11 Tables. How Are Tables Used Data Display  Very tidy and very useful Better Text Alignment  Putting text in tables allows you to format indents.
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.
Using Cascading Style Sheets. Introduction to Styles and Properties  Cascading Style Sheets (CSS) are a standard set by the World Wide Web Consortium.
Intro to Dreamweaver Web Design Section 7-1 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course.
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
XP Dreamweaver 8.0 Tutorial 3 1 Adding Text and Formatting Text with CSS Styles.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 3.
CM143Web Week 8 Review of Assignment 1 Revision & Elaboration.
Adding Graphics to Web Pages. CSS does not have any properties specifically aimed at formatting images Use properties you have already learned, i.e.,
Cascade Style Sheet Introduction. What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added.
Adobe Dreamweaver CS3 Revealed CHAPTER THREE: WORKING WITH TEXT AND IMAGES.
Add an Image. index.html about.html contact. html contact. html.
CSS Cascading Style Sheets. CSS Advantages Greater typography and page layout control Style is separate from structure Styles can be stored in a separate.
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.
Professor Waterman Cascading Style Sheets (CSS) is a language that works with HTML documents to define the way content is presented. The presentation.
Chcslonline.org Text –wrapping around Images. chcslonline.org To wrap text around an image, lets set up a style in our style sheet. open a new notepad.
Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything › Text › Lists › Other tables › Pictures › …
CIS234A Lecture 8 Instructor Greg D’Andrea. Review Text Table contains only text, evenly spaced on the Web page in rows and columns uses only standard.
DIV, Span, CSS.
DYNAMIC HTML What is Dynamic HTML: HTML code that allow you to change/ specify the style of your web pages. Example: specify style sheet, object model.
Microsoft Expression Web 3 – Illustrated Unit F: Enhancing a Design with CSS.
3.2 Cascading Style Sheets. 2 Positioning Elements Normally, elements are laid out on the page in the order that they are defined in the XHTML document.
Week 2: Building a Simple Website IMC 320 Web Publishing Spring 2011.
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
04 – CSS Informatics Department Parahyangan Catholic University.
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.
Understanding CSS Cascading Style Sheets control the presentation of content in HTML pages Style Sheets separate formatting from the content –Styles defined.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
Revision Webpage design HTML.   FACE  Attributes  Marquee  Define the following terms.
CSS.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
HTML5 and CSS3 Illustrated Unit D: Formatting Text with CSS
4.01 Cascading Style Sheets
CSS Layouts: Grouping Elements
Applying CSS to Tables Stylish Tables.
Webpage layout using CSS
Inserting and Working with Images
Creating Page Layouts with CSS
Using Cascading Style Sheets Module B: CSS Structure
Lists, Thumbnails, and Icons
HTML Images CS 1150 Spring 2017.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Cascading Style Sheets - Building a stylesheet
IBM Kenexa BrassRing on Cloud Responsive Apply: Visual Branding Tool
HTML Images CS 1150 Fall 2016.
Pertemuan 1b
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.
Cascading Style Sheets - Building a stylesheet
4.01 Cascading Style Sheets
Presentation transcript:

What to Style? Styles for elements establish consistency –Styles for HTML or body become the default –Only create styles for pre-defined elements* Styles for classes are repeatable –Use it to set backgrounds and borders for various elements –Use it to set text styles for different types of emphasis Styles for IDs are specific to that one instance –An ID refers to 1 (and only 1) instance of an element of a page.

Tiled Backgrounds Create an image to be repeated in Photoshop –Be sure it works as a background! –Use Filter -> Other -> Offset to ensure random patterns blend at the edges Make this the background of the body element –Set background-image* –Default is tiled; can also set different repeats and offsets

Gradient Backgrounds Create a gradient background in Illustrator –Dimensions should be that of the smallest device you are supporting Make it scale, without preserving aspect ratio –In a text editor, remove height & width specifications –Add the following attribute: preserveAspectRatio="none" Make this the background of the body element –Set background-image* –Make background-attachment = fixed

Scaling Images After inserting an img into a div … Remove explicit height & width values Set new height and width values –Use "100%" to fill the container –Use "auto" to maintain aspect ratio –Use max-width and/or max-height to limit scaling of the image Set as an img style if all images are to scale

Using Your Own Fonts If you used font-generating software … Link to the.css file Include as spans –Icon is shown as the class of a span –Text can appear after the icon icon-plus –A non-breaking space separates the icon from the text span class="icon-star"> icon-star

CSS Image Sprites An image sprite is a collection of images saved as a single image Create the image sprite –Use a fixed width and height for each –Place different icons in a row; place alternate states below them Use as background images –height & width represent size of each icon –background x & y offsets select the image –a:hover indicates change when hovering over the icon