• crm_shutterstock


How do I use CSS

Posted by: | Posted on: October 28, 2017
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

 





Leave a Reply

Your email address will not be published. Required fields are marked *