Lecture17 SMIL - II. Layouts Dividing Space into Regions Arranging media in smil is done (usually) as a two-step process. First, a region is created,

Slides:



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

1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
CSS Layout Crash Course An Advance CSS Tutorial. Inline vs. Block Many HTML elements have a default display setting of Block. Block elements take up the.
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.
Text Properties, Line Box, CSS. Text Properties Properties related to the display of text. Text-align : left, right, center I like FSU!
TUTORIAL 4: CREATING PAGE LAYOUT WITH CSS Session 4.3.
School of Computer Science & Information Technology G6DPMM - Lecture 18 Synchronized Multimedia Integration Language (SMIL)
An Introduction to Cascading Style Sheets CSS Layout, and the CSS Box Model Nick Foxall SM5312 week 9: CSS Layout.
Tutorial 4 Creating Special Effects with CSS
GUI Layout Managers Arkadiusz Edward Komenda. Outline Components and Containers Layout Managers Flow Layout Grid Layout Border Layout Nested Containers.
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.
Chapter 6 Working with Frames.
XP Tutorial 5New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Designing a Web Site with Frames Using Frames to Display Multiple Web Pages Tutorial.
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.
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.
Slide 1 of 83 Table Borders To specify table borders in CSS, use the border property. The example below specifies a black border for table, th, and td.
TECH2018 Multimedia and the Internet More about CSS and Page Layouts.
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.
Using Cascading Style Sheets. Introduction to Styles and Properties  Cascading Style Sheets (CSS) are a standard set by the World Wide Web Consortium.
Tutorial 4: Using CSS for Page Layout. 2 Objectives Session 4.1 Explore CSS layout Compare types of floating layouts Examine code for CSS layouts View.
Tutorial 4 Creating Special Effects with CSS. XP Objectives Work with CSS selectors Create styles for lists Create and apply class styles Create a rollover.
XP 1 Tutorial 5 Using Frames in a Web Site. XP 2 Tutorial Objectives  Describe the uses of frames in a Web site  Lay out frames within a browser window.
Tutorial 4 Creating Special Effects with CSS
CSS Positioning Creating Special Effects with CSS CS202 Working with Cascading Style Sheets (Chapter 4) CS202 1.
Basic Responsive Design Techniques. Let’s take a look at this basic layout. It has a header and two columns of text, in a box that is centered on the.
CSS The Definitive Guide Chapter 8.  Allows one to define borders for  paragraphs  headings  divs  anchors  images  and more.
Hyperlinks. Linking pages…Hyperlinks 2 Lecture 8  Hyperlink “A clickable HTML element that will direct the web browser to display a different Web page.
Copyright © Terry Felke-Morris CSS Flow & Positioning 1 Copyright © Terry Felke-Morris.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Tutorial 7.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
CIS234A- Lecture 7 Instructor Greg D’Andrea. Tables A table can be displayed on a Web page either in a text or graphical format. A text table: – contains.
FRAMES. Frames allow you to divide the page into several rectangular areas and to display a separate document in each rectangle. Each of those rectangles.
1 HTML Frames
THE BOX MODEL Putting layouts together with CSS. The Box Model  How would you describe a box?  Container?  Tags or elements are “containers”  puts.
Cascading Style Sheets Positioning Controls Visibility.
INTRODUCTORY Tutorial 5 Using CSS for Layout and Printing.
Positioning and Printing Creating Special Effects 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.
Cascading Style Sheets Positioning Controls Visibility.
Tutorial 4 Creating Special Effects with CSS. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Work with CSS selectors.
Tutorial 4 Creating Special Effects with CSS. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Work with CSS selectors.
Tutorial 4 Creating Special Effects with CSS. XP Objectives Work with CSS selectors Create styles for lists Create and apply class styles Create a rollover.
CONTROLLING Page layout
Tutorial 4 Creating Page Layouts with CSS
HTML Frames. Advantages to Using Frames n flexibility in design n information in different Web pages n remove redundancy. n site easier to manage. n update.
1 HTML Frames
Web Technology (NCS-504) Prepared By Mr. Abhishek Kesharwani Assistant Professor,UCER Naini,Allahabad.
CSS - Quiz #3 Lecture Code:
HTML and Dreamweaver November 11th. Agenda Box Model Displaying and positioning elements – Padding – Margin – Float – Display – Position HTML Demo.
Today’s objectives  Announcements  Positioning  Measurement units.
Chapter 4 and 5. Objectives Introduce markup: elements and attributes How browsers interpret HTML documents Basic structure of HTML document What do style.
CSS.
Cascading Style Sheets Layout
Cascading Style Sheets Boxes
CSS Layouts: Grouping Elements
Webpage layout using CSS
Cascading Style Sheets
Floating & Positioning
CSS Applications to XML 19-Sep-18.
Controlling Layout with Style Sheets
Second CSS Lecture Applications to XML
Positioning.
Cascading Style Sheets
More CSS 22-Feb-19.
Tutorial 4 Creating Special Effects with CSS
Positioning.
Positioning.
CSS Boxes CS 1150 Fall 2016.
CSS Applications to XML 20-May-19.
CSS Applications to XML 3-Jul-19.
Presentation transcript:

Lecture17 SMIL - II

Layouts Dividing Space into Regions Arranging media in smil is done (usually) as a two-step process. First, a region is created, and then a media object is tied to that region. smil regions are always rectangular. For creating regions, smil has the element. It has a number of attributes (11 to be exact) for specifying where it should be located and how media in the region should be displayed. Here is a brief description of some: width and height : These two attributes do just as you would expect. left, right, top, and bottom : These attributes specify the values for the extremities of the region. backgroundColor and showBackground : These attributes both affect the color of a region (or at least the parts of the region not obscured by media objects).

Layouts fit : The fit of a region controls what happends to a media object when its intrinsic width and height do not match that of the region it’s tied to. regionName : You can think of the region name as being similar to an id attribute. However, the regionName need not be unique. Attributes which are screen measurements (width, height, left, right, top, and bottom) can take relative values (e.g. px), absolute values (cm, mm, in, pt), or percentages. few examples:

Grouping Regions into a Layout While a solitary region may make sense, it’s not useful in a smil document until it has been added to a element. A groups one or more regions in the same way that a synchronization container groups media objects. The difference is that there is only one for a smil document and it cannot contain another nested. Also, the element must occur in the document’s. So to use all of the regions presented above, you could write the following: <region id="half-center" left="25%" top="25%" width="50%" height="50%"/>

Tying Media Objects to Regions

Stretching and Squeezing What would happen to the if its intrinsic width and height had been different from that of the ? That depends on the value of the fit attribute of the region. By default, a region has a fit attribute of ”hidden”. What this means is that if a media object is small enough to fit inside of the region, it will be rendered starting from the top-left corner of the region and any remaining space will be filled by the region’s backgroundColor. If the object doesn’t fit within the region it will be hidden (not rendered). There are also other fit values you can use: ”slice” : Functions the same as ”hidden” except that when the media object is too large for the region it is clipped to fit. (This is spacial clipping, not to be confused with temporal clipping which you encountered earlier.) ”scroll” : Functions the same as ”hidden” except that when the media object is too large for the region, scrollbars are added. ”fill” : Automatically fills or scales (stretches or squeezes) media objects to fit exactly within the region. ”meet” : Functions the same as ”scale” except that it preserves the aspect ratio. This means that both the width and height are scaled at the same rate until either of them reach the full extent of the containing region.

Nesting Regions

Further Readings This lecture is based on the SMIL tutorial named ”Learning to SMIL” by Chris Forno available from Lot of Further information on SMIL is available from the above site.