Ask coding questions

← Back to all posts
How to make 2 things be inline in HTML and CSS
dnilem26 (11)

I am trying to make a navbar that is also mobile friendly so I'm trying to make it so the navbar turns into this -->

But for some reason it is not going beside the word Example

If you figure out how to fix it please help


PS -- If you don't see than resize your webpage by clicking the restore button near the minimize and close button

InvisibleOne (3197)

in the style:

display: inline-block;
dnilem26 (11)

@InvisibleOne I tried that
Do you know any other ways you could do that