Home arrow How do I use CSS
How do I use CSS PDF Print E-mail
Written by admin   
Tuesday, 30 October 2007
How do I use CSS to style a SMIL presentation?

The <layout> element allows you to use different style languages through the type attribute. For example...

<smil>
  <head>
    <layout type="text/css">
      [region="r1"] {
        width: 320px;
        height: 240px;
      }
    </layout>
  </head>
  <body>
    <video region="r1" src="somevid.mpg"/>
  </body>
</smil>

Note: [region="r1"] is a lesser-known CSS selector that means "select any element that has a 'region' attribute set to 'r1'"

This FAQ applies to: SMIL 2.1

 
Last Updated ( Tuesday, 30 October 2007 )