I want to output a single line of text to the browser that contains a tag. When this is rendered it appears that the DIV causes a new line. How can I include the content in the div tag on the same line – here is my code.
I have tried to tidy it up here. How can I have this display on a single line?
div tag is a block element, causing that behavior.
You should use a
span element instead, which is inline.
If you really want to use
style="display: inline". (You can also put that in a CSS rule)
Answered By – SLaks
Answer Checked By – Jay B. (AngularFixing Admin)