How do you include stylesheets in pages?

mahudg2
Kilo Expert

How do you include stylesheets within pages?

 

I understand that to include ui scripts I would perform something like this

<g:include_script src="jquery_1_11.jsdbx"/>

 

but how would one include a stylesheet?

9 REPLIES 9

Slava Savitsky
Giga Sage

You can do it with a <link> tag like in any other (non-SNC) HTML page: CSS How to


How would you do that to include a stylesheet that is included in service-now?


Ankur Bawiskar
Tera Patron
Tera Patron

Hi Mahudg2,



Not sure whether your issue is resolved or not. But here is the way you can include the css stylesheets in an ui page



1) Create a record in Styles from Content Management. Give some name and copy paste the style


2) In UI page add this line to include the css stylesheet


<link href="19b311334f903200fc11fa218110c72f.cssdbx" rel="stylesheet" type="text/css"></link>



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader