div ><hr><p><span STYLE="font-size:24; color: black">Site:</span> Downtown Denver DataCenter - CCODEN44 | <span STYLE="font-size:24; color: black">Device:</span> CCODEN44-ACME-RTR-1 | <span STYLE="font-size:24; color: black">Interface:</span> Wilmington DataCenter, DC <span STYLE="font-size:24; color: black">Print</span><hr></p></div>
Hi , Inside a div Tag i am put up some text inside <HR><P> here some content </p></HR>
The content is put up with the help of some span tags in between .
Currently the content is displayed in two lines .
I want to make all this content appear in a single row /Line
Please advice .
div ><hr><p><span STYLE="font-size:24; color: black">Site:</span> Downtown Denver DataCenter - CCODEN44 | <span STYLE="font-size:24; color: black">Device:</span> CCODEN44-ACME-RTR-1 | <span STYLE="font-size:24; color: black">Interface:</span> Wilmington DataCenter, DC <span STYLE="font-size:24; color: black">Print</span><hr></p></div>
Hi , Inside a div Tag i am put up some text inside <HR><P> here some content </p></HR>
The content is put up with the help of some span tags in between .
Currently the content is displayed in two lines .
I want to make all this content appear in a single row /Line
Please advice .
Share Improve this question edited Apr 28, 2011 at 9:36 Felix Kling 818k181 gold badges1.1k silver badges1.2k bronze badges asked Apr 28, 2011 at 9:31 user663724user663724 5-
hr
tags don't have content. They are self closing tags. – Felix Kling Commented Apr 28, 2011 at 9:37 -
It appears to be in single row/line if you aren't missing the
<
in your opening div. – tradyblix Commented Apr 28, 2011 at 9:39 - i see only one line: jsfiddle/ezmilhouse/6jnTe – ezmilhouse Commented Apr 28, 2011 at 9:39
- i want to have as a Parallel line with some content in that , so the reason i have chosen this <HR> , could you please suggest an alternate way for this ?? – user663724 Commented Apr 28, 2011 at 9:40
- I am opening the current window as a pop window using window.open(). so its ing in two lines – user663724 Commented Apr 28, 2011 at 9:41
2 Answers
Reset to default 7<div style="white-space: nowrap">
and you do have an error in your code the second hr
should be outside the <p>..</p>
p
elements can only contain in flow text or inline elements
<div><hr><p><span STYLE="font-size:24; color: black">Site:</span> Downtown Denver DataCenter - CCODEN44 | <span STYLE="font-size:24; color: black">Device:</span> CCODEN44-ACME-RTR-1 | <span STYLE="font-size:24; color: black">Interface:</span> Wilmington DataCenter, DC <span STYLE="font-size:24; color: black">Print</span><hr></p></div>