Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Bootstrap 4 Basics (Retired) Responsive Layouts with the Bootstrap Grid Styling Content

Kingsley Felix
Kingsley Felix
8,591 Points

number of classes

Hello;

How many number of classes are we allowed to use? this below class is not floating the image to the right or left.

class="mb-1 img-fluid rounded float-right"

Unlike ID's, You can have as many classes as you desire. Have you set the selected class in the styling to float however which direction you want?

2 Answers

Sergey Podgornyy
Sergey Podgornyy
20,660 Points

Hi there Kingsley!

As Lee Torson said before, you can use as many classes as you want. But in this situation you have css rule which prevent or even interrupts float-right class displaying proper behavior. Can you show your css and full html element for this part of markup. Or you can give a link to your workspace.

Best regards!

Kingsley Felix
Kingsley Felix
8,591 Points

its nothing really, was just testing, maybe when i start practicing offline