Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7753441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:03:54+00:00 2026-06-01T12:03:54+00:00

I am retrieving video embed urls from my database. In my database, my videos

  • 0

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:

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T12:03:55+00:00Added an answer on June 1, 2026 at 12:03 pm

    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:

    div.embed video {
      width:  200px;
      height: 100px;
    }
    

    This, of course, assumes you’re using the HTML5 video tag. If you are not, you may need to target either embed or object, depending on how you display your videos.

    For example, you may have something like the following:

    <object width="560" height="315">
      <param name="movie" value="http://www.youtube.com/v/NWHfY_lvKIQ?version=3&amp;hl=en_US"></param>
      <param name="allowFullScreen" value="true"></param>
      <param name="allowscriptaccess" value="always"></param>
      <embed src="http://www.youtube.com/v/NWHfY_lvKIQ?version=3&amp;hl=en_US" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed>
    </object>
    

    You could target both the object and its embed child:

    div.embed object,
    div.embed embed {
      width:  200px;
      height: 100px;
    }
    

    On another note, your opening tag shouldn’t self-close, as this may cause problems identifying nested elements within.

    <div class="embed">
      <video...>
        <source... />
      </video>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am retrieving the details from the database and printing them in the XML
I am retrieving 3 fields from a database, and by default, only the username
I'm retrieving a float value from a mysql database on a php page (2.5,
Retrieving data from the REST Server works well, but if I want to post
When retrieving data from a database is it more efficient on server resources to
I am retrieving a fetch from my core data database and trying to iterate
Iam retrieving data from the database and displaying it as a list, in the
I am retrieving a product description value stored in database from admin through textarea
I took an video from you tube to Retrieving Data from SQL Server using
when retrieving and caching/saving (in a database) some posts from an rss feed, how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.