CSS ignored without class selector
Posted: Fri Dec 20, 2024 12:57 am
I have a simple HTML file with two cells in two columns. I want to set the padding for `td` elements via CSS. This is my HTML:
I can set padding for `td` elements of `@class='c' to 5px with the following CSS code:
But when i change CSS code so that every `td` Element is selected, it seems to be ignored:
leads to following FO snippet with `padding-*=' 1px`
Is it a bug, or do i miss something?
Frank Steimke
Code: Select all
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test</title>
<link rel="stylesheet" href="test.css" />
</head>
<body>
<table>
<colgroup>
<col class="a" />
<col class="b" />
</colgroup>
<tr>
<td class="c"/>
<td class="c">Column B</td>
</tr>
</table>
</body>
</html>
Code: Select all
td.c {
padding: 5px
}
Code: Select all
td {
padding: 5px
}
Code: Select all
<fo:table-cell start-indent="0" end-indent="0"
border-bottom-color="red" border-bottom-style="dashed"
border-bottom-width="1px" border-left-color="red"
border-left-style="dashed" border-left-width="1px"
border-right-color="red" border-right-style="dashed"
border-right-width="1px" border-top-color="red"
border-top-style="dashed" border-top-width="1px"
padding-bottom="1px" padding-left="1px"
padding-right="1px" padding-top="1px"
display-align="center">
<fo:block>Column B</fo:block>
Frank Steimke