I have 2 segments of text which I want to appear on the same line and then a vertical line between them like so:
blablablalbalblalbasldasd spacespacespacespace l spacespacespacespace blablablalbalbal
Sorry for the horrid example, but I'm not sure how to make multiple spaces here. The l in the middle is the verticle line intended.
Now one of my ideas would be to use the "tab" function in Microsoft word, but I don't know how to use that in HTML. As for the vertical line, I'm thinking perhaps putting a left border around the right segment of text?
But for this I need 2 < p > statements and if I make 2 < p > statements, the text appears on individual lines of text.
Any help appreciated!
`s go on different lines because they are `block`-level content, which by default takes up the entire width of their line. You can either set `display:inline;` via CSS on the `
` tags, or just use ``s (which are `inline` by default) to get your content on the same line (assuming the summation of the widths of your content is less than the width of their container, otherwise your content will break to the next line without more CSS rules). From there, you can use the techniques in that linked question.
– ajp15243 Dec 05 '13 at 21:22`s, just put a `|` character, and add left/right `margin` rules to your ``/`
– ajp15243 Dec 05 '13 at 21:26` elements. @showdev's answer is more or less that, although s/he put the `|` inside a `` and set `margin` on that, instead of setting `margin` on the elements containing the text.