The @page CSS style rule is not working in Service Portal while printing in Madrid and later releases


This article is about implementing the @Page CSS Style rule for Service Portal. CSS Page Rule is used to apply CSS to the Print page.

@page CSS Rule doesn’t work in the Madrid and later releases. It used to work in London and Kingston releases.

This is because, the way in which the CSS added to the theme is being loaded, is different in Kingston and NewYork. In Kingston and London, the CSS includes added to the theme are added as a separate CSSDBX file, but in New York, they are added to the HTML.

To get the CSS working for the Print page in Service Portal, the CSS page at rule style needs to be set to a common widget such as 'Header Menu' widget instead of the Portal Theme.

Additional Information