Back Next Index Table of contents Home
Go to...
ProgressDone (15 of 17)To do.

Chapter 3. Layout - screen 15 of 17

Make your medium slice its area

This time, the media grows - without distortion - and fill entirely its region, as shown below.

What slice does... ... ... and the result!

Set the fit attribute to "slice" in your <region> tag.

<smil>
 <head>
  <layout>
   <root-layout width="147" height="116" background-color="yellow" />
   <region id="region_1" left="8" top="10" width="116" height="81"
           background-color="white" fit="slice" />
  </layout>
 </head>
 <body>
  <!-- this image is smaler than its region -->
  <img src="madewithcss.gif" region="region_1" />
 </body>
</smil>
Source

The SMIL Tutorial is ©HELIO 1998-1999 all rights reserved
Comments about this page