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

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