Unexpected Table Header Alignment-CSS Inheritance Conflict?

This forum is for all Flare issues related to styles, stylesheets and XML.

Unexpected Table Header Alignment-CSS Inheritance Conflict?

Postby Niels on Thu Jun 07, 2018 9:39 pm

We have table styles, where the header row alignment is set to Left but the ultimate result is still justified, which I cannot explain.
There is some "p.TabelleHeadline1" style involved whose origin I cannot really judge.

Which CSS families are fighting their battles here?
You do not have the required permissions to view the files attached to this post.
Niels
Propeller Head
 
Posts: 77
Joined: Thu Dec 15, 2016 8:41 am
Location: Stuttgart

Re: Unexpected Table Header Alignment-CSS Inheritance Confli

Postby Dave Lee on Thu Jun 07, 2018 11:39 pm

Any text inside p.TabelleHeadline1 will use that style - so is p.TabelleHeadline1 justified?
Dave Lee
Master Propellus Maximus
 
Posts: 5658
Joined: Mon Mar 05, 2007 8:33 am
Location: UK

Re: Unexpected Table Header Alignment-CSS Inheritance Confli

Postby devjoe on Fri Jun 08, 2018 7:50 am

The best way to solve these problems is usually to look at the result in a browser and use the Inspect (Chrome) or Inspect element (Firefox and IE/Edge) command to open the document inspector, which will tell you which CSS commands are being applied to that element in what order to produce the styling you see.
devjoe
Sr. Propeller Head
 
Posts: 312
Joined: Thu Jan 23, 2014 1:43 pm

Re: Unexpected Table Header Alignment-CSS Inheritance Confli

Postby Niels on Wed Jul 04, 2018 12:47 am

Thank you for the tips.

The trouble is that I do not understand where "p.TabelleHeadline1" originates from. This is not defined in any style sheet and grepping for the keyword "Headline" through the complete Flare project (with all of its files including CSS and htm) shows that this keyword only occurs in many topic files (<p class="TabelleHeadline1">...) which all belong to one originally imported MS Word source. Maybe this is some residue of the import process that we can just clean up. And indeed, this undefined style then probably inherits its "justified" from <p>. Here I need to analyze further, I guess.

The "Inspect" approach also sounds very promising. I will note this down for the future.
Niels
Propeller Head
 
Posts: 77
Joined: Thu Dec 15, 2016 8:41 am
Location: Stuttgart

Re: Unexpected Table Header Alignment-CSS Inheritance Confli

Postby SteveS on Wed Jul 04, 2018 3:14 pm

Niels wrote:...The trouble is that I do not understand where "p.TabelleHeadline1" originates from...

Have you checked the tablestyles style sheet(s)?
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
SteveS
Propellus Maximus
 
Posts: 1978
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).

Re: Unexpected Table Header Alignment-CSS Inheritance Confli

Postby Niels on Fri Aug 03, 2018 8:42 pm

Of course. This was the starting point of this post ( - :

We have table styles,
Niels
Propeller Head
 
Posts: 77
Joined: Thu Dec 15, 2016 8:41 am
Location: Stuttgart

Re: Unexpected Table Header Alignment-CSS Inheritance Confli

Postby Nita Beck on Sat Aug 04, 2018 6:20 am

Your screenshot of the table stylesheet header row is cut off at the right so I can’t check this by looking... In the table stylesheet header row’s definition, down near the bottom right of the window, there’s a field for setting the default paragraph style for cells in the header row. Is the default paragraph style set to p.TabilleHeader1? (Sorry if I misspelled that.)
Nita
Image
Content Strategist / Information Architect / Flare Consultant: http://beck-communications.com
Manager, Rochester Flare User Group: http://www.facebook.com/RochesterFlareUserGroup
Nita Beck
Senior Propellus Maximus
 
Posts: 3290
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Unexpected Table Header Alignment-CSS Inheritance Confli

Postby Niels on Tue Jun 04, 2019 10:50 pm

Just to summarize what I remember vaguely was involved in this issue: We migrated from MS WORD and there were some leftovers that we needed to clean up.
Niels
Propeller Head
 
Posts: 77
Joined: Thu Dec 15, 2016 8:41 am
Location: Stuttgart


Return to Styles, Stylesheets and XML

Who is online

Users browsing this forum: No registered users and 3 guests