responsive width for images and videos

how to make the images take the full width of the columns for all devices?
same way how to make the youtube videos take the full width of the columns for all devices? - please check the 3 column layout that has images and videos that is not taking full width of the columns.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kyle HamiltonData ScientistCommented:
With images it's easy. Just set img width to 100%:
img {
    width: 100%;

Open in new window

if you want to target only images in certain containers, you can do:
.some-container img {
    width: 100%;

Open in new window

For youtube videos, here's a snippet I use that makes them responsive:
/* for iframes with youtube

<div class="scalable scalable-16-9">
  <div class="scalable-content">
    <iframe src=""></iframe>

.scalable {
  overflow: hidden;

.scalable iframe {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  border: 0;

.scalable .scalable-content {
  height: 0;
  position: relative;

.scalable-16-9 .scalable-content {
  /* Percentage from 9 divided by 16 for ratio of 16:9. */
  padding-bottom: 56.25%;

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
codelevelAuthor Commented:


can you please answer similar question? ?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.