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

Is this in any way different from what was previously suggested in this discussion?


Hi @Ankur Bawiskar 

How do we access portal styles, please tell me if there is a way

Hi @hreddy 

 

You can access Portal styles using the sysif of the style using sysid of the style
Please refer all your list of style in the table "sp_css.LIST"

<head>

<link rel="stylesheet" type="text/css" href="sys_id_Of_style.spcssdbx">

</link>

Thanks @Harish Murikina  for the help, it is indeed working and custom fonts are reelecting now

dustin_barre
Mega Contributor

Hmm, this isn't working for me at all. I've tried linking the out of box css sheets as well and nothing works? This is exactly what my code looks like. This is using one of the out of box CSS stylesheets and it still doesn't make changes to my UI Page (didn't include that code).



<?xml version="1.0" encoding="utf-8" ?>


<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">


<!-- Latest compiled and minified CSS -->


<link href="04d13e320fb332008b208b9ae1050edb.cssdbx" rel="stylesheet" type="text/css"/>




</j:jelly>