INTRODUCTORY Tutorial 4 Exploring Graphic Elements and Images.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Client-Side Internet and Web Programming
Cascading Style Sheets Color and Background Controls Border and Margin Controls (Boxes)
9-May-15 More CSS. 2 A different emphasis CSS is the same for XML as it is for HTML and XHTML, but-- XML contains no display information If you want your.
Today’s objectives Site performance Padding, Margins, Borders
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.
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.
CSS: Class 1 Background Images, Controlling Position of Background Images, Add Padding to Page Elements, Add Borders to Elements on a Page.
Tutorial 4 Formatting Text. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Create a spread heading Indent text Change the line spacing.
CS4370/6370 Web Development Cascading Style Sheets (CSS)
Web Design & Development Cascading Style Sheets (CSS)
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
TUTORIAL 4: CREATING PAGE LAYOUT WITH CSS Session 4.3.
Cascading Style Sheets Part 3 Fall, 2007 Modified by Linda Kenney Nov. 12, 2007.
XP Creating Web Pages with HTML Using Tables. XP Objectives Create a text table Create a table using the,, and tags Create table headers and captions.
Using HTML Tables.
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.
Lecture CSS: Cascading Style Sheets. What are Styles? Cascading Style Sheets (CSS) is a style sheet language used to describe the presentation semantics.
Cascading Style Sheets 1 Color and Backgrounds. Cascading Style Sheets 2 Color and Backgrounds Computer color basics Expression of color values using.
1 The Structure of a Web Table beginning of the table structure first row of three in the table end of the table structure table cells You do not need.
IMAGES Controlling size of images in CSS Aligning images in CSS Adding background images.
CSS Dvijesh Bhatt.
Cascading Style Sheets, pt 2 ECA 225 Applied Online Programming.
Cascading Style Sheets CSS. CSS - Structure Declaration block Property: identifies what to change Value: how to change it Selector – example h1{ font-size:
New Perspectives on XML, 2nd Edition Tutorial 5 1 TUTORIAL 5 WORKING WITH CASCADING STYLE SHEETS.
XP New Perspectives on XML Tutorial 5 1 TUTORIAL 5 CSS Tutorial – Carey ISBN
Doman’s Sections Information in this presentation includes text and images from
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorials 3 & 4: Working With CSS.
Today’s objectives  Assignment 1  Padding, Margins, Borders  Fluid Layout page  Building accessible Table  Element size with padding and border 
Adding Graphics to Web Pages. CSS does not have any properties specifically aimed at formatting images Use properties you have already learned, i.e.,
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
LITTLE BOXES Controlling size of boxes Box model for borders, margin and padding Displaying and hiding boxes.
Doncho Minkov Telerik Web Design Course html5course.telerik.com Technical Trainer
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
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.
Cascading Style Sheets Chapters 5-6 Color and Background Controls Border and Margin Controls.
 Cascading Style Sheets (CSS) ◦ Used to specify the presentation of elements separately from the structure of the document.  Inline style ◦ declare.
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.
XP Review 2 New Perspectives on JavaScript, Comprehensive1 Introducing Cascading Style Sheets Formatting Web Pages with CSS.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Cascading Style Sheets.
Tutorial 4 Creating Page Layouts with CSS
IS1825 Multimedia Development for Internet Applications Lecture 12: IDs, Classes and Internal CSS Rob Gleasure
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
Doncho Minkov Telerik School Academy schoolacademy.telerik.com Technical Trainer
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 15: Lists.
CIS234A Lecture 6 Instructor Greg D’Andrea. Span and Div The span and div elements are a generic means by which we can add structure to documents. The.
ECA 228 Internet/Intranet Design I Cascading Style Sheets.
Tutorial #5 Working with the Box Model. Tutorial #4 Review - CSS Create a homework page Final Project Discussion Exam on Blackboard Styling Lists (List-style-type,
PERSPECTIVES: TUTORIAL 4 CREATING PAGE LAYOUTS WITH CSS.
Tutorial 3 Designing a Web Page with CSS
1 CS428 Web Engineering Lecture 07 Font, Text & Background (CSS - II)
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 4 Formatting Text and Links.
CSS.
Cascading Style Sheets Boxes
CSS Layouts CH 13.
( Cascading style sheet )
Semester - Review.
>> The “Box” Model
Cascading Style Sheets (Formatting)
CSS Applications to XML 19-Sep-18.
Objectives Create a reset style sheet Explore page layout designs
Cascading Style Sheets
The Internet 10/13/11 The Box Model
CSS Borders and Margins.
Second CSS Lecture Applications to XML
More CSS 22-Feb-19.
CSS Boxes CS 1150 Fall 2016.
CSS Applications to XML 20-May-19.
CSS Applications to XML 3-Jul-19.
Cascading Style Sheets™ (CSS)
Presentation transcript:

INTRODUCTORY Tutorial 4 Exploring Graphic Elements and Images

XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Wrap text around an image Use an image as a horizontal rule Format the default horizontal rule Use the tag Investigate the box model Explore the padding, margin, and border properties

XP Objectives Float an image or text Use the clear property Change the list style type and position Use an image in a bulleted list Format and float headings Create definition lists Work with background properties New Perspectives on Blended HTML, XHTML, and CSS3

XP Including Images, Borders, and Text on Web Pages Guidelines for using images – Add extra space around images so the text doesn’t crowd them – Use light, simple backgrounds that don’t interfere with the text – Add space between text and borders to avoid clutter – Put graphics and text side by side to minimize scrolling New Perspectives on Blended HTML, XHTML, and CSS4

XP Inserting an Image New Perspectives on Blended HTML, XHTML, and CSS5

XP Enhancing the Appearance of Horizontal Rules New Perspectives on Blended HTML, XHTML, and CSS6

XP Setting Horizontal Rule Properties To specify the format of a horizontal rule, enter the following code where you want the rule to appear: Use the following properties to set the appearance of the rule: width: Use to set the width in pixels or as a percentage value of the screen width. Percentages are preferred text-align: Use to align the rule left, center, or right. Center is the default value height: Use to set the height (the thickness) of the rule in pixels. The default value is 2px color: Use to change the color of the rule. Use named values, RGB values, or hex values New Perspectives on Blended HTML, XHTML, and CSS7

XP Setting Horizontal Rule Properties New Perspectives on Blended HTML, XHTML, and CSS8

XP Setting Horizontal Rule Properties New Perspectives on Blended HTML, XHTML, and CSS9

XP Using the Box Model New Perspectives on Blended HTML, XHTML, and CSS10

XP Using the Padding Properties While the margin property controls white space outside an element, the padding property controls white space inside an element When you create an element with a background color, letters that have ascenders (such as the letter d) or descenders (such as the letter g) might be clipped New Perspectives on Blended HTML, XHTML, and CSS11

XP Using the Margin Properties The margin property is often used with images to create white space on one or more sides of an image New Perspectives on Blended HTML, XHTML, and CSS12

XP Using the Border Properties You use the border properties to draw a border around any block-level element, such as headings, blockquotes, or paragraphs To create a style using the border shortcut property, use the style: border: color style thickness; where color is a named color, RGB triplet, or hexadecimal value, style is solid, double, dotted, dashed, groove, ridge, inset, outset, or none, and thickness is thin, medium, or thick New Perspectives on Blended HTML, XHTML, and CSS13

XP Using the Border Properties New Perspectives on Blended HTML, XHTML, and CSS14

XP Using the Border Properties New Perspectives on Blended HTML, XHTML, and CSS15

XP Using the Border Properties New Perspectives on Blended HTML, XHTML, and CSS16

XP Positioning Images New Perspectives on Blended HTML, XHTML, and CSS17

XP Using the float Property If you want to wrap text around an image, use the float property with a value of left or right New Perspectives on Blended HTML, XHTML, and CSS18

XP Using the float Property New Perspectives on Blended HTML, XHTML, and CSS19

XP Using the Clear Property To create a style to clear an element, use the property: clear: value; where value is left, right, or both New Perspectives on Blended HTML, XHTML, and CSS20

XP Setting List Properties To specify the format of a list, enter the following code where you want the list to appear: ul { or ol { list-style-property: value; Use the following properties to set the appearance of the list: list-style-type: Use this to change the bullet type, the numbering, or the lettering for a list. Values are disc, circle, square, decimal, lower-roman, upper-roman, lower-alpha, upper-alpha, and none list-style-image: Use this to insert an image instead of one of the list style types. Specify a value in the format url(imagename) New Perspectives on Blended HTML, XHTML, and CSS21

XP Setting List Properties list-style-position: Use this to position the bullet either inside or outside the indented text for the list item. Values are inside or outside (the default) list-style: This is the shortcut property that specifies the type, the image, and the position; list the values for each property in that order vertical-align (for images): If necessary, use the vertical- align property to align a liststyle- image with the list item text. Values are top, middle, and bottom New Perspectives on Blended HTML, XHTML, and CSS22

XP Using the list-style-type Property You use the list-style-type property to change the appearance of the default solid bullet for unordered lists New Perspectives on Blended HTML, XHTML, and CSS23

XP Applying the list-style-image Property You use the list-style-image property to change the bullet to a graphic image The list-style property is the shortcut property for list styles The vertical-align property can be used to position an element, such as an image, vertically with text – Top – Middle – Bottom New Perspectives on Blended HTML, XHTML, and CSS24

XP Applying the list-style-image Property New Perspectives on Blended HTML, XHTML, and CSS25

XP Working with Definition Lists To create a definition list, use the following syntax: defined term1 definition1 defined term2 definition2 where defined term is the word or phrase to be defined and definition is the definition of the term New Perspectives on Blended HTML, XHTML, and CSS26

XP List-style Properties New Perspectives on Blended HTML, XHTML, and CSS27

XP Setting Background Properties To specify the appearance of a background, enter the following code: body { background-property: value; } Use the following properties to set the appearance of the background: background-image: Use this to place an image behind the contents of an element. The image can be any.gif or jpg image, but the syntax must be similar to this: url(imagename.gif). background-position: Use this to position an image on the page without the need for tables or frames. Use keywords or percentage values New Perspectives on Blended HTML, XHTML, and CSS28

XP Setting Background Properties background-repeat: Use this to repeat an image horizontally, vertically, or to fill the entire screen. When using the default value, repeat, (the image is repeated to the right and down the page to fill the entire window with copies of the same image). Other values are repeat-x (the image is repeated horizontally across the window), repeat-y (the image is repeated vertically down the window), no-repeat (the image is not repeated), and background-attachment (determines whether an image scrolls with the insertion point) background: This is the shortcut property used to change all of the background properties. Properties and values must be listed in a set order New Perspectives on Blended HTML, XHTML, and CSS29

XP Setting Background Properties New Perspectives on Blended HTML, XHTML, and CSS30

XP Setting Background Properties New Perspectives on Blended HTML, XHTML, and CSS31