Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Offline bootstrap

Tags:

html

css

How can I make this work in offline? This is in my index.html:

<link href='https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/paper/bootstrap.min.css' rel='stylesheet'>

Update:

There's a line in the css that contains http call to get the font css, do I need to download it offline as well?

@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700");/*!
like image 987
user1872384 Avatar asked Dec 24 '22 17:12

user1872384


2 Answers

Download the minified CSS file from Bootstrap and store it in an external CSS folder - then call it into the page as an external CSS resource

for example: 
  <link rel="stylesheet" href="css/bootstrap.min.css">
like image 160
gavgrif Avatar answered Dec 31 '22 14:12

gavgrif


Download Boostrap file and Save it.

https://v4-alpha.getbootstrap.com/getting-started/download/

basic syntax :

<link href='Path/yourNameFile.css' rel='stylesheet'>

Path is interpreted relative to the source of the Html file.

For Example : if Your bootstrap file is in Folder MyBootstrap and so This Folder and Html file are some Place,Your code must be like this :

<link href='MyBootstrap/YourNameFile.css' rel='stylesheet'>
like image 36
Ehsan Avatar answered Dec 31 '22 13:12

Ehsan