Thursday, September 27, 2012

Cannot remove border of a table in Content Editor Web Part

When we add a <table> tag in content editor web part, we cannot customize or remove the cell border even when we set the css styles.

Workaround for this is by overriding the .ms-WPBody TD style in the aspx page where the web part is added.


<asp:Content ContentPlaceHolderId="PlaceHolderTitleAreaClass" runat="server">
<style type="text/css">
.ms-WPBody TD
{
         border:0;
}
</style>
</asp:Content>

No comments:

Post a Comment