SOLVED

Errors in email template code

Go to solution
Anonymous
Not applicable
I tried to approve a new email template and got an error message. 

One or more Mkteditable sections have errors. Make sure you have at least one and that they all have valid IDs. 

I then went into the Validate Code section and it showed these errors. Are these grave issues? If not, how do I bypass this so I can approve the template? 

line 11 column 1 - Warning: <style> isn't allowed in <body> elements
line 10 column 1 - Info: <body> previously mentioned
line 370 column 17 - Warning: <table> attribute "cellpadding" has invalid value "10px"
line 453 column 10 - Warning: <table> attribute "cellpadding" has invalid value "10px"
line 525 column 12 - Warning: <table> attribute "cellpadding" has invalid value "10px"
line 692 column 10 - Warning: <table> attribute "cellpadding" has invalid value "10px"
line 777 column 12 - Warning: <table> attribute "cellpadding" has invalid value "10px"
line 887 column 10 - Warning: <table> attribute "cellpadding" has invalid value "10px"
line 970 column 17 - Warning: <table> attribute "cellpadding" has invalid value "10px"
line 1019 column 10 - Warning: <table> attribute "cellpadding" has invalid value "10px"
 
Tags (1)
1 ACCEPTED SOLUTION
Anonymous
Not applicable
Eric is correct, you cannot place the div under the table tag. Also, it cannot be inside of the tr tag.  It has to be inside the td tag of a table otherwise it breaks the table. We moved the div tag in David's code outside of the table, but inside of the td tag for the table it was nested under. This gives the user the ability to remove rows within the table in the email editor.

View solution in original post

11 REPLIES 11