I am retrieving video embed urls from my database.
In my database, my videos are 600×450. What I want to do is make them smaller and place them within a <td>. In order to accomplish this, I wrote the following CSS with template lite tags:
<style type="text/css">
{literal}
div.embed
{
width: 200px;
height: 100px;
}
{/literal}
</style>
My markup follows:
<tr>
<td>Fragmanlar</td>
<td>
<div class="embed"/>
{foreach value=movieF from=$movieFragman}
{$movieF.embedCode}
{/foreach}
</div>
</td>
</tr>
The problem is that my video sizes are not being affected, and it runs over the edges of my <td>.
image:

You cannot target the container of the videos themselves, you would need to target the actual video element. If they are within
div.embed, you can amend this selector for specificity:This, of course, assumes you’re using the HTML5
videotag. If you are not, you may need to target eitherembedorobject, depending on how you display your videos.For example, you may have something like the following:
You could target both the
objectand itsembedchild:On another note, your opening tag shouldn’t self-close, as this may cause problems identifying nested elements within.