I may be forgetting something obvious, but how would I place 2 or 3 <div> elements on the same line? I don't want line breaks. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I may be forgetting something obvious, but how would I place 2 or 3 <div> elements on the same line? I don't want line breaks.

I've been working on a website portal that will list sites that I commonly visit because I figured it would be good practice. I got myself in deep here and have tried about everything I could think of. What I'm going for is multiple content boxes with borders (this part works perfectly) that would be grouped 3 per line. Each content box will have a certain group according to the content of sites in them. I'd appreciate any input even if it involves some major revisions.

15th Nov 2019, 10:13 PM
Michael
Michael - avatar
4 Answers
0
I've even tried using the span element but that's an inline element so my borders would be ruined.
15th Nov 2019, 10:18 PM
Michael
Michael - avatar
0
Mirielle🐶 [Inactive] that kinda worked but that makes it so I can't use block styling.
15th Nov 2019, 11:11 PM
Michael
Michael - avatar
0
I'll try that thanks
15th Nov 2019, 11:49 PM
Michael
Michael - avatar