dismayldream
Programmer
I am trying to add line breaks via CSS inline styles so as to omit presentational markup from my XHTML document. Basically, I've got a simple block of code like so:
<div id="ctl00_MainContentPlaceHolder_OpAdminDisplayCtrl1_UpdatePanel1">
<span id="ctl00_MainContentPlaceHolder_OpAdminDisplayCtrl1_Who1Label">Region:</span>
<span id="ctl00_MainContentPlaceHolder_OpAdminDisplayCtrl1_Who1Text" title="Read: Right granted to user directly in operation 'ORANGE'.">Blurtal Region</span>
<span id="ctl00_MainContentPlaceHolder_OpAdminDisplayCtrl1_Who2Label">Branch:</span>
<span id="ctl00_MainContentPlaceHolder_OpAdminDisplayCtrl1_Who2Text" title="Read: Right granted to user directly in operation 'ORANGE'.">Internal Investigations</span>
<span id="OpName">Operation Name:</span>
<span id="ctl00_MainContentPlaceHolder_OpAdminDisplayCtrl1_OpNameLabel" title="Read: Read right granted as can administer rights">ORANGE</span>
<span id="OpCode">Operation Code:</span>
<span id="ctl00_MainContentPlaceHolder_OpAdminDisplayCtrl1_OpCodeLabel" title="Read: Right granted to user directly in operation 'ORANGE'.">BO 12 N003</span>
</div>
and I am trying to use CSS application to cause each pair of spans to co-exist on a single line, with a break - like so:
Region: Blurtal Region
Branch: Internal Investigations
Operation Name: ORANGE
Operation Code: BO 12 N003
Originally, this had been accomplished via the addition of extraneous <table><tr><td> elements, which led to some very cluttered code. I've experimented with CSS inline styles (only inline until they work) using the display:inline, display:block; properties, but I can't seem to get everything to exist in the requisite value pair.
Could someone point out how I can accomplish this task via CSS? Or if I'm going to need to add xhtml <br /> tags to accompish this task.
Thanks!
<div id="ctl00_MainContentPlaceHolder_OpAdminDisplayCtrl1_UpdatePanel1">
<span id="ctl00_MainContentPlaceHolder_OpAdminDisplayCtrl1_Who1Label">Region:</span>
<span id="ctl00_MainContentPlaceHolder_OpAdminDisplayCtrl1_Who1Text" title="Read: Right granted to user directly in operation 'ORANGE'.">Blurtal Region</span>
<span id="ctl00_MainContentPlaceHolder_OpAdminDisplayCtrl1_Who2Label">Branch:</span>
<span id="ctl00_MainContentPlaceHolder_OpAdminDisplayCtrl1_Who2Text" title="Read: Right granted to user directly in operation 'ORANGE'.">Internal Investigations</span>
<span id="OpName">Operation Name:</span>
<span id="ctl00_MainContentPlaceHolder_OpAdminDisplayCtrl1_OpNameLabel" title="Read: Read right granted as can administer rights">ORANGE</span>
<span id="OpCode">Operation Code:</span>
<span id="ctl00_MainContentPlaceHolder_OpAdminDisplayCtrl1_OpCodeLabel" title="Read: Right granted to user directly in operation 'ORANGE'.">BO 12 N003</span>
</div>
and I am trying to use CSS application to cause each pair of spans to co-exist on a single line, with a break - like so:
Region: Blurtal Region
Branch: Internal Investigations
Operation Name: ORANGE
Operation Code: BO 12 N003
Originally, this had been accomplished via the addition of extraneous <table><tr><td> elements, which led to some very cluttered code. I've experimented with CSS inline styles (only inline until they work) using the display:inline, display:block; properties, but I can't seem to get everything to exist in the requisite value pair.
Could someone point out how I can accomplish this task via CSS? Or if I'm going to need to add xhtml <br /> tags to accompish this task.
Thanks!