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

How to set checkbox and radio buttons to inline

Hello, right now I work on project 3, and the issue is that input and label is set to display:block, and further in my code I need to add radio, checkbox, to inline, I dont know how to do it.

I did it I just used the position:relative and flexbox

2 Answers

So, here's what you can do, Keep the position relative to the object by command position: relative; and display it using command, display: flexbox OR display: inline;

thank you Parth for your answer, but I solved by myself what was wrong, I needed to set selectors to display:inline, and then use flex-basis