Trevor Nicholls wrote:
> I hope this requirement is simple!
>
> I am trying to align a table caption with a table cell.
> The table has a 2 pixel border.
> The table cell has 0.25em padding.
> This means that the table caption needs padding of 0.25em + 2px.
> The browser is IE.
>
> Is this possible without making assumptions about font sizes?
>
> Relevant lines from the current CSS file:
>
> body {
> font-size: small;
> }
>
> table {
> /* NB */
> /* IE tables don't inherit font-size */
> font-size: 1em;
> border: thin solid black;
> }
>
> th, td {
> padding: 0.25em;
> }
>
> table caption {
> caption-side: top;
> /* NB *
> /* padding needs extra allowance for border */
> padding: 0.25em;
> }
Fractional ems combined with pixels? I think you're just asking for
rounding errors ...
--
David
[EMAIL PROTECTED]
authenticity, honesty, community
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/