css and google fonts

Just starting out? Need help? Post your questions and find answers here.
Stefan
Posts: 160
Joined: Mon Feb 05, 2018 9:44 pm

css and google fonts

Post by Stefan »

How can I use css backgrounds and google fonts in SB?
pf shadoko
Posts: 74
Joined: Thu May 26, 2016 11:09 am

Re: css and google fonts

Post by pf shadoko »

Code: Select all

!$('head').append('<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />');

Macro gicon(nom)
    "<i class='material-icons' style='font-size:40px'>"+nom+"</i>"
EndMacro


OpenWindow(1,0,0,800,600,"",#PB_Window_ScreenCentered)
ButtonGadget(0,10,10,100,50,gicon("home"))
Post Reply