Lists in Table Styles?

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
crdmerge
Sr. Propeller Head
Posts: 248
Joined: Tue Dec 16, 2008 5:37 am

Lists in Table Styles?

Post by crdmerge »

[Flare newbie using V7 Trial]

What's the most effective way of setting specific list styles for elements within a table style (Resources/TableStyles/MyTableStyle.css)?

Inside the MyTableStyle.css file? If so, how?
Inside the MyProjectStyles.css file? If so, how?

I'm looking to set up different list indents, spacing, etc. for the tbody and tfooter styles, and can't seem to figure it out.

Thx
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Lists in Table Styles?

Post by LTinker68 »

You'll have to put the list styles in the main topic stylesheet, which I'm guessing is the one you called myProjectStyle.css. If you put it in the table stylesheet, the styles will possibly get blown away the next time you modify the table stylesheet.

In the topic stylesheet, your best option is to use a complex selector that specifies how lists behave within a td tag (table cell). You can't create complex selectors within the Stylesheet Editor GUI -- you'll have to open the stylesheet file in the Internal Text Editor and manually add the complex selector. Once you've added it to the stylesheet file (and saved the file), the complex select will appear in the Stylesheet Editor, so you can modify it through that GUI later, if necessary.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
crdmerge
Sr. Propeller Head
Posts: 248
Joined: Tue Dec 16, 2008 5:37 am

Re: Lists in Table Styles?

Post by crdmerge »

"You can't create complex selectors within the Stylesheet Editor GUI." Grrrrrr....

No wonder some of my other style changes were being ignored. How long has this been going on, and why hasn't it been fixed yet? (As a newbie, I get to ask these uncomfortable questions.) :wink:


Thx
lacastle
Propellus Maximus
Posts: 1028
Joined: Thu Apr 12, 2007 7:28 am
Location: Wilmington, DE
Contact:

Re: Lists in Table Styles?

Post by lacastle »

I made a p.table class that has the formatting i want instead of trying to mess with table (td th tr, etc). i think the only table stylesheet formatting i use is cell borders and background color for the header row. for the text in each cell, i make sure it is in a <p> tag (press Enter while in the cell, then delete the extra line you just created) and then apply a <p> style. you can make your <p> into a list or just make a li.table style with the appropriate formatting.
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Lists in Table Styles?

Post by LTinker68 »

crdmerge wrote:No wonder some of my other style changes were being ignored. How long has this been going on, and why hasn't it been fixed yet? (As a newbie, I get to ask these uncomfortable questions.) :wink:
I've been asking for it since v1, I believe, so that means it hasn't been implemented in 6 years. Normally it doesn't take that long for a feature to get added, but they (MadCap) have to prioritize requests, so even though I requested it a long time ago, there might not have been very many other requests for the same capability, so they didn't have any sense of urgency.

Which is why everyone has to report a bug or request if they've experienced it (bug) or wanted it added (feature), even if someone else in the forum has indicated they've already submitted the bug/request. If only a couple of people complain/request, then it's not a big deal -- if a LOT of people do, then it's a bigger deal and gets a higher priority.

And just to clarify... It's not that you can't create complex selectors -- it's just that you can't do it through the GUI. Although that said, there have been some complex selectors I've tried to add in the past that Flare threw up on (it especially didn't like complex selectors with the * wildcard). And once you have created the complex selectors manually, when you later modify them in the GUI, the GUI may display info that's not correct because it's showing you what it's inheriting or it's buggy behavior. Quite honestly, I switch back and forth from the GUI to the stylesheet code a lot.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
crdmerge
Sr. Propeller Head
Posts: 248
Joined: Tue Dec 16, 2008 5:37 am

Re: Lists in Table Styles?

Post by crdmerge »

Works for me!

In myProjectStyle.css, I set up table > tfoot > tr > td > ul > li { MyFootStyles } and table > tfoot > tr > td > ol > li { MyFootStyles } with the indent/padding/margin stuff I wanted, and it works just fine. Editing outside the GUI will be no problem, either (as long as I remember which CSS to edit). :?

Now, where's that bug report link? Do I have to exit the User Forum and get back to the Madcap home page?


Thx
lacastle
Propellus Maximus
Posts: 1028
Joined: Thu Apr 12, 2007 7:28 am
Location: Wilmington, DE
Contact:

Re: Lists in Table Styles?

Post by lacastle »

crdmerge wrote:Now, where's that bug report link?
https://www.madcapsoftware.com/bugs/submit.aspx
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Lists in Table Styles?

Post by LTinker68 »

There's also a link at the bottom of the Start tab (the bug report and feature request are the same form).
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
crdmerge
Sr. Propeller Head
Posts: 248
Joined: Tue Dec 16, 2008 5:37 am

Re: Lists in Table Styles?

Post by crdmerge »

Thank you, ladies.
SteveS
Senior Propellus Maximus
Posts: 2090
Joined: Tue Mar 07, 2006 5:06 pm
Location: Adelaide, far side of the world ( 34°56'0.78\"S 138°46'44.28\"E).
Contact:

Re: Lists in Table Styles?

Post by SteveS »

Oh, and welcome to the forums... :D
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
Post Reply