Ask coding questions

← Back to all posts
How to use a CSS file on as a CDN
IntellectualGuy (852)

Just like the title, how do I use a CSS file on as a CDN.

Coder100 (18831)
  1. here is my super awesome css:
  2. now to use the lib, just make HTML!
<link href="" rel="stylesheet" type="text/css" />

do note that cdns are meant to be reliable, but replit isn't reliable, so a true cdn doesn't exist, but you can come close!

OldWizard209 (1602)

You can use Bootstrap. Bootstrap is a CDN itself, from which you can design tags customly using Bootstrap's CSS. To start using it, just paste this in your HTML:

<link rel="stylesheet" href="" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">

And you can simply add classes in your tags which will change your website's look. But Bootstrap is literally MASSIVE. so here is a guide lol:

IntellectualGuy (852)

@OldWizard209 I meant, I have a CSS file that I want to use in another repl, adn I've heard that replit can be used a cdn network, so how do I do that.

OldWizard209 (1602)

You can open your website, view the page source, go to the css file, and import it in your file that you want to use it in using @import url(“ <the url u copied>”) @IntellectualGuy

dudeactualdev (148)

what exactly do u mean?