Design and CSS styles
Version 5.x > Design and CSS styles > Set class or style property of table in content of Editable Text Webpart View modes: 
User avatar
Member
Member
lethanhclub-gmail - 10/27/2011 12:35:25 AM
   
Set class or style property of table in content of Editable Text Webpart
Hi everyone,

I using Editable Text Webpart, I create two table in which content. I need to set css class or style property for two table that I just created. But I can't find where put it in. So could everyone help me? Thank you so much.

User avatar
Member
Member
kentico_edwardh - 10/28/2011 8:30:51 PM
   
RE:Set class or style property of table in content of Editable Text Webpart
Hello,

If you are using version 5.x of Kentico, then the Editable Text web part is using the FCK Editor which doesn't have any built in styles for tables. You would need to generate your table, then click the "Source" button and add a style directly to the source code of the table. Something like the example below.

<table <YOUR STYLE HERE> border="1" cellspacing="1" cellpadding="1" width="200">

If you are using version 6.x of Kentico, then the Editable Text web part is using the CK Editor which does have built in styles for tables. When you are creating your table in the editor, please click on the Advanced tab. Here you can specify your styles.

Best Regards,
Edward Hillard