UI Page CSS formatting

cshriya
Kilo Explorer

I am working with system UI pages and looking for the solution to include reference of stylesheet file in UI page itself so that instead of defining styles with html tags I can use CSS slandered way of using css class.
I have created stylesheet file called myStyle.css in style Content Management -> Design ->Sheet Sheets module. Now I( want to use it on one of the UI page called "myPage" created in module Syatem UI -> UI Pages.
I could not find any way to include reference of styleseet in UI page like doing for JS files. For
example:


<script></script>

Anyone have some suggestions?
Thanks in advance.
Chhavi

6 REPLIES 6

Mark Stanger
Giga Sage

I just wrote a post at SNGuru that should help you with this.

http://www.servicenowguru.com/content-management/custom-stylesheets-noncms-pages/


cshriya
Kilo Explorer

Hi Matt,

Thanks for the solution. It's working fine.
I have one more issue, I am sure you can give me the solution.
When I am going to print the UI page, images are gone. I used the tag for image in UI page is as below:



Please suggest.

Best regards
Chhavi


gaidem
ServiceNow Employee
ServiceNow Employee

Add a class of user_image to the img element.


Thanks! I'd been trying to work out why my images were not "available" in Print Preview for any of my browsers (Chrome / FireFox etc).

I see now that with the standard CSS, all images are hidden when media=print.