I am a beginner in ExpressionEngine (and other code languages for that matter). Anyways, I am creating a video tutorial site, I have my ExpressionEngine site set up so I have categories in one channel. These categories filter content to the corresponding page. However, I want my site to have a featured video, which will be the newest posted video. Once I publish a new video, I want it to take the main stage and push the previous video to a smaller size. I am using Vimeo as a video host so all videos will be on Vimeo.
Here is my code in my main page for sorting new from old content
{exp:channel:entries limit="10"}
<div class="main_feature">
{if count==1}
<div class="video_large">
{/if}
{if count !=1}
<div class="video_small">
{/if}
<h2>{video_tutorial_title}</h2>
{video_tutorial_link}
{video_tutorial_summary}
</div>
{/exp:channel:entries}
I have them filtering to two different styles. My CSS looks like this...
.video_large {
height: 960px;
width: 640px;
}
.video_small {
height: 180px;
width: 320px;
}
When entering my new content/videos. I have been using the embed code from each video and removing the height and width from them thinking the div would then resize it. It looks as if it resized all the videos to 180x340 but for the newest video it looks like it created a 640x960 div, the video just doesn't fill the entire div. I am hoping I won't need any plug ins or anything like that. I am hoping its just something basic I am overlooking. Any help is greatly appreciated. Thank you!