In the Table Properties dialog, The Cell Spacing control allows for a value of -1.
When exporting RVF's to HTML with a cell spacing of -1, a 1px border is shown when viewed in Firefox. It doesn't show in IE 6 or Opera.
Could you tell me why this value of -1 and when should it be used? what is the purpose of it ?
Thanks
.
Table Cell Spacing question
-
- Site Admin
- Posts: 17566
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
If CellBorderWidth=1 and cell spacing = -1, borders overlap and you can see 1 pixel border between cells instead of 2 pixels.
This setting cannot be saved in HTML without CSS (SaveHTML), because HTML does not allow negative cell spacing. However, when using CSS (SaveHTMLEx), TRichView writes style 'border-collapse: collapse;' for such tables, that should do a similar thing for merging adjacent borders in browsers.
This setting cannot be saved in HTML without CSS (SaveHTML), because HTML does not allow negative cell spacing. However, when using CSS (SaveHTMLEx), TRichView writes style 'border-collapse: collapse;' for such tables, that should do a similar thing for merging adjacent borders in browsers.
Ok, thanks. I save html to stream with the following settings:
At saving to html time, the table is defined as follows:
Firefox interprets the "cellspacing=-1", which shows a 1px border. Opera and IE don't do that.
This is confusing my users and I therefore need to eliminate the "-1" option from the Cell spacing dropdown of the Table Properties dialog. Which source module do I have to edit to achieve that?
Thanks.
Code: Select all
RichViewEdit1.SaveHTMLToStreamEx(streamRVEHtml,'','','','','','',
[rvsoMiddleOnly, rvsoUseItemImageFileNames, rvsoImageSizes,
rvsoNoHypertextImageBorders, rvsoMarkersAsText, rvsoNoDefCSSStyle,
rvsoInlineCSS]);
Code: Select all
<table border=1 cellpadding=0 cellspacing=-1 style="border-color: #000000; border-style: solid; border-collapse: collapse;">
This is confusing my users and I therefore need to eliminate the "-1" option from the Cell spacing dropdown of the Table Properties dialog. Which source module do I have to edit to achieve that?
Thanks.
-
- Site Admin
- Posts: 17566
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: