SVG obhect centering issue
Posted: Tue May 08, 2018 7:41 pm
Hi, I'm using DITA-PDF (WYSISYG) transformation with CSS via PDF chemistry.
I want my logo to be at the top center of the front page.
For better quality I want to use .svg object, not a regular image.
The issue is that it does not work for svg, object is always at the top-left position:
Though it is ok for images:
How can I center svg?
I want my logo to be at the top center of the front page.
For better quality I want to use .svg object, not a regular image.
The issue is that it does not work for svg, object is always at the top-left position:
Code: Select all
@page front-page {
@top-left-corner {
content: none
}
@top-left {
content: none
}
@top-center {
content: url("..\img\my-logo.svg");
margin: auto;
display:block;
}
Code: Select all
@page front-page {
@top-left-corner {
content: none
}
@top-left {
content: none
}
@top-center {
content: url("..\img\my-logo.png");
margin: auto;
display:block;
}