Table header background overlaps border when rounded
Posted: Tue Jan 02, 2024 5:27 pm
Hello,
Edit: I am using <oXygen/> XML Editor 26.0, build 2023111306 and using the DITA Map PDF - based on HTML5 & CSS scenario
I encounter a problem when attempting to round the borders of tables. I have a blue background in the table header. Unfotunately I get the following output when I try to round the border: #1 shows the blue background overflowing. #2 is what I want the upper corners to look like.
The CSS that styles the tables:
I have experimented with the overflow, z-index and background-clip properties in the topic/table class itself and th, topic/thead and topic/entry classes but nothing seems to work.
What am I missing?
Thanks in advance
Edit2: It should be noted that in the generated <file_name>.merged.html the output is as I want it:
Edit: I am using <oXygen/> XML Editor 26.0, build 2023111306 and using the DITA Map PDF - based on HTML5 & CSS scenario
I encounter a problem when attempting to round the borders of tables. I have a blue background in the table header. Unfotunately I get the following output when I try to round the border: #1 shows the blue background overflowing. #2 is what I want the upper corners to look like.
The CSS that styles the tables:
Code: Select all
/* table entry border color */
*[class~="topic/entry"] {
border-color: #CED5DD;
font-size: inherit;
padding-left: 10px;
padding-right: 10px;
/* background-color: #E5BE01; */
}
/* table header */
*[class~="topic/thead"] {
color: white;
background-color: #023A4F;
}
/* align table header text to the left */
th {
text-align: left;
}
/* general table styling */
*[class~="topic/table"] {
border: #CED5DD 1px solid;
border-radius: 5px;
border-collapse: separate;
border-spacing: 0;
overflow: hidden;
background-color: burlywood;
What am I missing?
Thanks in advance

Edit2: It should be noted that in the generated <file_name>.merged.html the output is as I want it: