pevans
Posts: 14
|
| Posted: 07/24/2006, 7:56 PM |
|
I am using the following code to generate a horizontal list using CSS.
----------------------------------------------------------------
<div id="navcontainer">
<ul id="navlist">
<!-- BEGIN Row -->
<!-- BEGIN RowError --><!-- END RowError -->
<li>
<input type="hidden"value="{ProgramID}"name="{ProgramID_Name}">
<input type="hidden" maxlength="10" size="2"
value="{DayNumber}"name="{DayNumber_Name}" style="WIDTH: 32px; HEIGHT: 22px">
<a href="{Link1_Src}">{DayNumber}</a>
</li>
<!-- END Row -->
</ul>
</div>
----------------------------------------------------------------
However CCS keeps changing the code to the following.
----------------------------------------------------------------
<div id="navcontainer">
<ul id="navlist">
<!-- BEGIN Row -->
<!-- BEGIN RowError --><!-- END RowError -->
<li>
<input type="hidden"value="{ProgramID}"name="{ProgramID_Name}">
<input type="hidden" maxlength="10" size="2"
value="{DayNumber}" name="{DayNumber_Name}" style="WIDTH: 32px; HEIGHT: 22px">
<a href="{Link1_Src}">{DayNumber}</a>nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
<!-- END Row -->
</li>
</ul>
</div>
----------------------------------------------------------------
It moves the </li> tag outside the row definition, which affects the generated code by leaving the </li> off the end of each list item. It also adds nbsp inside the row definition, which affects the display. It seems to keep adding a nbsp each time the code is generated.
I do not do any editing of the HTML between these changes made to the code. It seems to occur when the code is generated for Live View or on Generate Code.
How can I prevent these changes?
PhilE
(I have re-formatted this code here from what is generated to make it a bit easier to see the changes.)
|
 |
 |
|