How do you include stylesheets in pages?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2014 01:35 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2014 03:11 PM
You can do it with a <link> tag like in any other (non-SNC) HTML page: CSS How to
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2014 05:08 AM
How would you do that to include a stylesheet that is included in service-now?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2014 05:27 AM
Perhaps this is what you are looking for:
» How to Use Custom CSS style sheets in non-CMS pages
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2017 06:06 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader