Forum Moderators: not2easy

Message Too Old, No Replies

Visual Editor - css problem?

is this invalid code?

         

tonynoriega

3:04 pm on Feb 12, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



i have a visual editor with my CMS here at work.

i get into "code" view and start hacking....

i go back to visual mode, check my layout, then back to code.

<div id="mem-claims">

<a class="category" onmouseover="toggleDiv('mem0',1)" onmouseout="toggleDiv('mem0',0)" href="#">

<img class="mem-left" alt="Claims and Coverage Descriptions" src="/_images/mem-claims-icon.jpg" />

<span>Claims & Coverage Descriptions</span>

</a>

</div>

the example above seems to get the <span> tags stripped when i toggle back and forth from visual to code...

what i want to know is, if that is valid code?

is the span tag getting stripped becuase its not recognized as valid code?

i think there is some sort of "code cleaner" with this CMS that is taking it out...

swa66

7:14 pm on Feb 12, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The validator at w3.org can validate code fragments as well as entire pages.

The "&" in there might need to be written as &amp; (depending on the doctype, but your CMS seems to favor xhtml)