how do you link css to a jade file?

Swat Designz picture Swat Designz · Nov 28, 2013 · Viewed 41.6k times · Source

I am currently trying to link normalize.css but its not working (using socket an express)

html
        head
                title= "Real time web chat"
                link(href='/css/normalize.css')
                script(src='/chat.js')
                script(src='/socket.io/socket.io.js')
                script(src='http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js')
        body
                #content(style='width: 100%; height: 600px; margin: 0 0 20px 0; border: solid 1px #999; overflow-y: scroll;')
                .controls
                        | Name: 
                        input#name(style='width:350px;')

                        input#field(style='width:350px; display: inline; margin-left -90px;')
                        input#send(type='button', value='send')

Answer

Khanh Nguyen picture Khanh Nguyen · Nov 28, 2013

You need rel

link(href='/css/normalize.css', rel='stylesheet')