Results 1 to 6 of 6
  1. #1
    Star Lounger
    Join Date
    Sep 2001
    Location
    San Jose, California, USA
    Posts
    92
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Table border color (FP2002)

    Hi again;

    This table stuff just gets weirder and weirder. I never had these problems with FP2000.

    Anyway, FP2002 keeps rewriting the <table> tag. This was reported to me by one of my users and I was able to verify it.

    I created a table with the following code:

    <table border="2" cellpadding="2" width="760" bgcolor="#808080" bordercolor="#000080" cellspacing="0">

    This works fine, looks fine, and previews in browser just fine. However, if I close the file in FP and then reopen it, the table tag has been changed to this:

    <table border="2" cellpadding="2" width="760" bgcolor="#808080" cellspacing="0">

    The border color is gone! It still previews in browser fine, UNTIL you save it, then the new table tag is applied and the color disappears when the browser is refreshed. So it follows that the table tag is being changed by FP2002 upon file open. This is utterly confounding.

    Resetting the table defaults according to the MSKB (and my last post here about border-collapse) didn't help. I even checked the global page options, and "Preserve existing HTML" is turned on.

    How are we supposed to work with any confidence that our tables are behaving correctly? Is there a way to stop this?

    <img src=/S/brickwall.gif border=0 alt=brickwall width=25 height=15>
    Dave

  2. #2
    Super Moderator WebGenii's Avatar
    Join Date
    Jan 2001
    Location
    Redcliff, Alberta, Canada
    Posts
    4,066
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Re: Table border color (FP2002)

    I tried to repeat the problem, but couldn't. hmm. Does it happen on all of your FP installations?
    Are you using styles?

    Cheers
    [b]Catharine Richardson (WebGenii)
    WebGenii Home Page
    Moderator: Spreadsheets, Other MS Apps, Presentation Apps, Visual Basic for Apps, Windows Mobile

  3. #3
    Star Lounger
    Join Date
    Sep 2001
    Location
    San Jose, California, USA
    Posts
    92
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Table border color (FP2002)

    There are two of us now using 2002, and it is happening to both.

    We are using a custom theme (fxfwtheme) with the 'apply using css' option, and that's the only style (css or inline) being used. I checked all the theme's css files and found the following entries:

    color0.css -
    table
    {
    table-border-color-light: rgb(204, 204, 204);
    table-border-color-dark: rgb(102, 102, 102);
    }

    color1.css -
    table
    {
    table-border-color-light: rgb(153, 153, 153);
    table-border-color-dark: rgb(0, 0, 0);
    }

    fxfw1011.css - same as color0.css
    fxfw1110.css - same as color1.css
    fxfw1110-109.css - same as color1.css
    fxfw1111.css - same as color1.css
    theme.css - table { font-family: Verdana, Arial, Helvetica; font-size: 10pt }

    Could it be that the theme is overwriting the table border attributes? Those RGBs in the color0.css file look like what the table becomes once FP removes the border color code. In the theme dialogues, I have everything set to automatic and border style to 'none,' the font being the only thing I specify.

    By the way, it seems to leave tables without border color attributes alone.

    Dave

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Table border color (FP2002)

    I haven't broken out my hex-to-RGB converter... is the manually applied bordercolor the same as or different from the one that is applied per CSS? If it's redundant, perhaps FP is removing it for that reason; to reduce the amount of code (not that FP ever worried about this before). If it's different, you might have to create a new CLASS in your stylesheet to get around FP's behavior.

  5. #5
    Star Lounger
    Join Date
    Sep 2001
    Location
    San Jose, California, USA
    Posts
    92
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Table border color (FP2002)

    Thanks for the help. It looks like we're going to have to apply a style sheet to stop FP's mucking about.

  6. #6
    Super Moderator WebGenii's Avatar
    Join Date
    Jan 2001
    Location
    Redcliff, Alberta, Canada
    Posts
    4,066
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Re: Table border color (FP2002)

    I think style sheets are the way to go with this. Applying a theme does act to rewrite the HTML, as you've discovered.

    Cheers
    [b]Catharine Richardson (WebGenii)
    WebGenii Home Page
    Moderator: Spreadsheets, Other MS Apps, Presentation Apps, Visual Basic for Apps, Windows Mobile

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •