Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Add bootstrap carousel as screen gets bigger

I recently learned how to add bootstrap content to my html for building quick and responsive web pages.

However, I am trying to start off designing a website from having no carousel with 4 images on mobile sizes to scroll down and fit the mobile screen size.

I want the bootstrap carousel to contain these four images and appear when the viewport width is around tablet size or bigger.

How would I code that in terms of html, css? or would I need to use javascript or jquery for this?

Please let me know, thank you.

1 Answer

One way to do it would be to use CSS Media Queries, here is a tutorial on using them:

https://www.w3schools.com/css/css_rwd_mediaqueries.asp

Cheers.