The Now Platform® Washington DC release is live. Watch now!
‎07-08-2013 11:50 AM
Guys,
do you know how to make a reference to a CSS file in UI page? I tried several options with
<link type="text/css" href="..., but with no success. I want to upload CSS file to SN instance and 'link' it to UI page.
Solved! Go to Solution.
‎07-08-2013 01:22 PM
To upload CSS to ServiceNow you can go to Content Management -> Design -> Style Sheets, then upload the CSS. You'll be copying and pasting it in as a local stylesheet. Once it's defined as a stylesheet it can be referenced by a CMS Theme for use on a CMS site or you can reference directly in the HTML of a UI Page.
To reference it in your UI Page you need to add this to the page:
<link href="sys_id_of_stylesheet_record.cssdbx" rel="stylesheet" type="text/css"></link>
‎07-08-2013 01:22 PM
To upload CSS to ServiceNow you can go to Content Management -> Design -> Style Sheets, then upload the CSS. You'll be copying and pasting it in as a local stylesheet. Once it's defined as a stylesheet it can be referenced by a CMS Theme for use on a CMS site or you can reference directly in the HTML of a UI Page.
To reference it in your UI Page you need to add this to the page:
<link href="sys_id_of_stylesheet_record.cssdbx" rel="stylesheet" type="text/css"></link>
‎07-08-2013 01:47 PM
It works! Thanks!
‎07-08-2013 08:36 PM
It sure does, But it does have a cache issue. See this post here : http://chrishann.net/posts/2012/12/3/servicenow-style-sheets-and-caching
That's one of the right ways to do it.
‎11-16-2015 08:52 AM
This worked for me too. Fixing some field justification issues in legacy surveys in Fuji. Thanks for sharing.