Forum Moderators: phranque

Message Too Old, No Replies

Keeping code fixed

design mode always messes with it

         

buksida

7:44 am on Jan 4, 2005 (gmt 0)

10+ Year Member



Not sure where else to put this or whether there is even a solution.

I have designed a menu using CSS and block <li> statements that works fine, however the code must be a certain way.

Other people need to edit these pages which are templates. They only edit content and go nowhere near the actual menu however the program used (EditAce and M$ Visual Studio) likes to alter the code and put it in a neat list. This screws my menu up as it sticks gaps in between the CSS elements that shouldnt be there.

My question is this:

Is there a HTML or javascript tag that I can put at the beginning and end of the code to stop any other program messing with it. Such as :

<leave this as it is>
menu code
</leave this as it is>

supermanjnk

4:18 pm on Jan 4, 2005 (gmt 0)

10+ Year Member



use notepad...

other then that theres nothing you can do to prevent a program from auto formating your code unless the program has that built into it.

TheDoctor

5:36 pm on Jan 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could put the content in a separate file and include it, either via an iframe or via a server-side include. Or, perhaps even better, you could include the menu via a server-side include in the content file.

By chosing one of these methods, no one and nothing would be able get at the menu code.