html - Why is my Google Drive CSS not showing up in Safari? -


i used @import at-rule, , it's located in <head> of html:

<style> @import url('https://googledrive.com/host/0b4nfvqltfntzam45bnfntxuyoeu'); </style> 

this shows in firefox not latest version of safari. can explain why? because file in google drive?

if it's actual css that's problem, don't mind because it's test see if @import works, method importing style sheets browsers?

while should functioning method of linking styles website, it's not best practice. tells browser providing internal style sheet, tells import external style sheet nest within element. wouldn't surprised if yield inconsistent results across different browsers. try skipping tags , including instead:

<link rel="stylesheet" href="https://googledrive.com/host/0b4nfvqltfntzam45bnfntxuyoeu/yourfilename.css"> 

now, should consider implementing method either way, notice changed file path. replace "yourfilename.css" style sheet's file name. if directory linked contains 1 style sheet, must explicitly define file in order browser find it.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -