开发者

DIV Content Text appear in a single row / Line

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 t开发者_开发百科wo lines .

I want to make all this content appear in a single row /Line

Please advice .


<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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜