Ask coding questions

← Back to all posts
How to use a CSS file on as a Repl.it CDN
IntellectualGuy (797)

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

Comments
hotnewtop
Coder100 (17620)
  1. here is my super awesome css: https://WiryDependentTrial-aoeu-aoe-uaeo-uaeo-u.coder100.repl.co/style.css
  2. now to use the lib, just make HTML!
<link href="https://WiryDependentTrial-aoeu-aoe-uaeo-uaeo-u.coder100.repl.co/style.css" 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 (1357)

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="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" 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:
CLICK HERE

IntellectualGuy (797)

@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 (1357)

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

RyanGardiner1 (142)

what exactly do u mean?