Using Twitter Bootstrap (3.3.X), I want to display these lines on desktop:
Some info
Some more info
Even more stuff
And the same on mobile view should display as (pipes as in literal character, not separate blocks if possible):
Some info | Some more info | Even more stuff
This would be on the right side of a div defined with col-md-8
, or on a single line above the div if it’s on mobile.
Any ideas?
2
Answers
You can do this with
:after
pseudo class anddisplay: inline-block
DEMO
Optionally if you are using Twitter Bootstrap 3 you can make use of the visible-*-* classes which will let you hide or show content depending on the screen size.
Example Fiddle
So you could use
You could even change the “/” character for a glyphicon o another kind of code.
and for CSS
Choose whichever media query suits your needs the best.