Filezilla css uploading
Posted: 2022-05-25 07:17
Hey!
Im trying to transfer CSS fonts and backgrounds to Filezilla, but it wont accept the css url's
Examples:
CSS:
/* Custom font sources */
@font-face { font-family: MontserratBold; src: url('/fonts/Montserrat-Bold.ttf'); }
.MontserratBold { font-family: MontserratBold; font-size: auto; }
@font-face { font-family: MontserratRegular; src: url('/fonts/Montserrat-Regular.ttf'); }
.MontserratRegular { font-family: Montserrat-Regular; font-size: auto;}
HTML:
<li class="nav-item"><a class="nav-link MontserratBold" href="companystory.html">COMPANY'S<br>STORY</a></li>
And this works in live preview.
and also:
CSS:
/*Landingpage's body image*/
#LandingPageBody{
background-image: url("/images/Page_1.jpg");
background-position: initial center;
background-repeat: no-repeat;
background-size: cover;
}
HTML:
<div class="container-fluid" id="LandingPageBody">
This works aswell in live preview.
When Im using vs code live preview it all works, fonts and backgrounds, but when I upload to Filezilla none of these show.
Everything else works perfect
-Ville
Im trying to transfer CSS fonts and backgrounds to Filezilla, but it wont accept the css url's
Examples:
CSS:
/* Custom font sources */
@font-face { font-family: MontserratBold; src: url('/fonts/Montserrat-Bold.ttf'); }
.MontserratBold { font-family: MontserratBold; font-size: auto; }
@font-face { font-family: MontserratRegular; src: url('/fonts/Montserrat-Regular.ttf'); }
.MontserratRegular { font-family: Montserrat-Regular; font-size: auto;}
HTML:
<li class="nav-item"><a class="nav-link MontserratBold" href="companystory.html">COMPANY'S<br>STORY</a></li>
And this works in live preview.
and also:
CSS:
/*Landingpage's body image*/
#LandingPageBody{
background-image: url("/images/Page_1.jpg");
background-position: initial center;
background-repeat: no-repeat;
background-size: cover;
}
HTML:
<div class="container-fluid" id="LandingPageBody">
This works aswell in live preview.
When Im using vs code live preview it all works, fonts and backgrounds, but when I upload to Filezilla none of these show.
Everything else works perfect
-Ville