When I generate my ListOf proxy locally and in html5, a cell border appears before and after the title (see image below). If I change my css default td style to border:none it eliminates the problem, but I have so many tables that I want to keep the td border.
My bad solution: assign different css stylesheet at a topic level. But these get overridden when I assign a stylesheet to a master page.
I can't seem to change this style from the MadCap proxy because the tables created on export.
Am I missing something? Could I control this with a div? Why is the ListOf proxy using my css if I can't control it?
ListOf proxy with cell borders on output
ListOf proxy with cell borders on output
You do not have the required permissions to view the files attached to this post.
Re: ListOf proxy with cell borders on output
As a work-around, you could try opening the stylesheet in text mode, and adding this:
That will switch off the border for td when used inside tables of class table.GenListOfTableListOf - which is the generated class for a List-of-Proxy.
Code: Select all
table.GenListOfTableListOf td { border: none; }
-
- Propeller Head
- Posts: 56
- Joined: Mon Apr 05, 2010 6:51 pm
- Location: Charleston
- Contact:
Re: ListOf proxy with cell borders on output
See Dave's reply above. I didn't see it before I posted.
My first recommendation is to rethink applying formatting to the base td tag in your stylesheet. Instead I would add a class to use for tables in your content and apply that class everywhere. However you can style the generated classes with your stylesheet. Since you are encountering a tag with no class, you have to look to a parent or a sibling with a tag. If you want to leave the border style on td, you can use a Descendant Combinator.
Open your stylesheet in a text editor and add this:
This will appear in the Advanced view of the stylesheet in Flare:
That should override the border.
My first recommendation is to rethink applying formatting to the base td tag in your stylesheet. Instead I would add a class to use for tables in your content and apply that class everywhere. However you can style the generated classes with your stylesheet. Since you are encountering a tag with no class, you have to look to a parent or a sibling with a tag. If you want to leave the border style on td, you can use a Descendant Combinator.
Open your stylesheet in a text editor and add this:
Code: Select all
table.GenListOfTableListOf td
{
border: none 0px;
}
You do not have the required permissions to view the files attached to this post.
Re: ListOf proxy with cell borders on output
That worked amazingly!
The link you posted is also very useful. I can apply this to other places in the project now. But you're right, I should probably reconsider setting a base td tag. I just have so many tables I was trying to avoid the extra code.
THANK YOU BOTH!
The link you posted is also very useful. I can apply this to other places in the project now. But you're right, I should probably reconsider setting a base td tag. I just have so many tables I was trying to avoid the extra code.
THANK YOU BOTH!
Re: ListOf proxy with cell borders on output
Here is an alternative that preserves alignment with the TOC, since the empty td's with borders are using space on the left and right of the table of figures.
Code: Select all
/*
Flare adds td's before and after the real content of the ListOf
table, they have borders that can be turned off, but making
them not display at all allows a Table of Figures to be aligned
the same as the Table of Contents. If it ever stops putting them
in - they seem completely pointless - the real content of the
Table of Figures will disappear and this rule will have to
be removed to restore them. NOTE: it doesn't seem to support
last-child or nth-last-child.
*/
table.GenListOfTableTOF td:first-child,
table.GenListOfTableTOF td:nth-child(4)
{
display: none;
}