Table width precedence

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

Table width precedence

Postby AlanKearns on Fri May 14, 2021 9:08 am

Why would a table with an inline style setting of 100% width (and which has a 1em margin on all sides in its table style), do the following, when there's 1em of right padding on the body style:

* Have its right border right up against the right-side window edge, and
* Have its right border outside the edge of a dropdown body (i.e. hidden, presumably at the window edge), when the dropdown body has no right padding set.

....when the Dropdown itself (and tables inside lists) respect the body's right 1em margin.

It seems to me that the 100% should be 100% of the container it's in, whether the body or the dropdown. So that a table in the body should be 1em in on the right from the window, and a table in a dropdown should be 1em in from the right side of the dropdown. Especially since the left padding is being applied.
Propeller Head
Posts: 68
Joined: Thu Sep 11, 2014 2:06 am

Re: Table width precedence

Postby Nita Beck on Tue May 18, 2021 5:15 am

Short answer is "I dunno." I suggest using your browser's inspect tools to determine just where in the CSS the effect is coming from.
Content Strategist / Information Architect / Flare Consultant:
Manager, Rochester Flare User Group:
Nita Beck
Senior Propellus Maximus
Posts: 3429
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Return to Styles, Stylesheets and XML

Who is online

Users browsing this forum: No registered users and 3 guests