EisregenGruss36 EisregenGruss36 - 1 year ago 126
CSS Question

CSS topbar: vertical separator wraps the content of the bar

I have made a site with a topbar in HTML and CSS. Now I wanted to add a vertical separator between some of the icons in the topbar, but it does not work.
First, when I added the separator-div it only displayed the first three icons but neither the separator nor the other icons.
Than I added

display: inline;
to the
which made the separator and the other icons visible but below the topbar.
I also tried adding
white-space: nowrap;
but it had no effect.

How can I make everything in the topbar being displayed in one line?

Here is the HTML and CSS:

Answer Source

Is this what you expect?

jsfiddle: https://jsfiddle.net/gpkmm360/

Added display: inline-block to topbar and the separator

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download