Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to link css external file which is stored on Dropbox?

Tags:

html

css

dropbox

Not possible link an external CSS file stored in Dropbox with HTML.

Tried and follow up all the instructions I could find online. That I need to left click and press "Copy Dropbox Link" and that should be by href link but Is not working.

The general dropbox link looks like the the code below (Changed the ?dl=0 to raw=1 and remove www.dropbox with dl. but still with no luck).

<link rel="stylesheet"  
href="https://www.dropbox.com/s/xxxxxxxx/xxx.css">

Could you please check and please point out what I am doing wrong

Thanks

like image 326
Konstantinos Angelis Avatar asked Dec 04 '25 10:12

Konstantinos Angelis


1 Answers

To use this URL in your stylesheet you will need to make a small adjustment to the URL by changing the www. in the URL to dl.

This allows Docs to access the source of the file rather than the Dropbox page for the file.

Finally, your code like this:

<link rel="stylesheet" href="https://dl.dropbox.com/s/xxxxxxxx/xxx.css?dl=0">
like image 67
Mordecai Avatar answered Dec 06 '25 00:12

Mordecai



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!