Re: How we can default the cell padding, cell border, cell alignment properties.

  •  11-16-2005, 12:45 PM

    Re: How we can default the cell padding, cell border, cell alignment properties.

    You can find the CuteEditorconstants.js under CuteSoft_clients/CuteEditor.

    >>We want to set the default value of cell padding = '0' , cell border = '0' 

    Table cell doesn't have those properties.  Check this link: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/td.asp

    >>cell alignment to 'left' and cell vertical allignment to 'top'. 
     
    When creating a new table, align and vAlign are not set by default.
     
    <table cellSpacing="0" cellPadding="3" border="1" style="width: 320px; border-collapse: collapse">
           <tbody>
               <tr>
                  <td></td>
                  <td></td>
                  <td></td>
               </tr>
               <tr>
                  <td></td>
                  <td></td>
                  <td></td>
               </tr>
           </tbody>
       </table> 

    You need to set align and vAlign using the table cell property dialog.

      <table cellSpacing="0" cellPadding="3" border="1" style="width: 320px; border-collapse: collapse">
           <tbody>
               <tr>
                  <td vAlign="top" align="left"></td>
                  <td></td>
               </tr>
               <tr>
                  <td></td>
                  <td></td>
               </tr>
               <tr>
                  <td></td>
                  <td></td>
               </tr>
           </tbody>
       </table>
       <br/>
    </div>
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread