开发者

DIV Content Text appear in a single row / Line

开发者 https://www.devze.com 2023-03-01 01:47 出处:网络
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
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

精彩评论

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

关注公众号