Problems Styling Table Style inside a List

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
ClanMoffat
Jr. Propeller Head
Posts: 9
Joined: Thu Jun 22, 2023 2:34 am

Problems Styling Table Style inside a List

Post by ClanMoffat »

Any thoughts on using CSS to fix the table width when a table is in a 1st or 2nd-level list item would be great! (Esp for Word Output!)

I am using Flare Table Styles OK with PDF output that looks good with 100% inside and outside lists for PDF output...

However, I also need to create output in MS Word:
  • 100% is OK-ish for full-width tables. :)
  • 100% is NOT OK for tables in 1st or 2nd-level tables, as the table drops off the side of the page. :(
I'm probably doing something wrong with my CSS/topic, but another pair of eyes could help!

My Topic contains something like:
  • <table style="width:(--TableWidth-1stListItem-Word) class="TableStyle-aaTS-NoteBox"
Variable Definitions
TableWidth-1stListItem-Word is a variable defined as 6.05in.
TableWidth-FullScreen-Word is a variable defined as 6.48in.

My CSS contains something like:

Code: Select all

	table.TableStyle-aaTS-NoteBox.width: var(--TableWidth-FullScreen-Word);
	ol li > table.TableStyle-aaTS-NoteBox.width: var(--TableWidth-1stListItem-Word);
	ul li > table.TableStyle-aaTS-NoteBox.width: var(--TableWidth-1stListItem-Word);
Many thanks!
trent the thief
Propellus Maximus
Posts: 613
Joined: Wed Feb 01, 2006 6:21 am
Location: Off in the dark....

Re: Problems Styling Table Style inside a List

Post by trent the thief »

Perhaps placing the table inside a Div would give you more width control.
Trent.

Certifiable.

Image

umm...
I meant MAD Certified.

Official Propeller Beanie Owner :-)

:flare: Are you on Flare's Slack channels? PM me for an invitation! :flare:
Post Reply