Page 1 of 1

Filezilla css uploading

Posted: 2022-05-25 07:17
by Weqsu
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

Re: Filezilla css uploading

Posted: 2022-05-25 08:31
by botg
You don't upload "to FileZilla". FileZilla is merely the tool you are using to transfer files.

Re: Filezilla css uploading

Posted: 2022-05-25 09:00
by Weqsu
botg wrote:
2022-05-25 08:31
You don't upload "to FileZilla". FileZilla is merely the tool you are using to transfer files.
English is not my main language so the word wasnt rigth but u get the idea what im trying to say?

Re: Filezilla css uploading

Posted: 2022-05-25 19:29
by boco
We do get it. However, as FileZilla is merely the tool you use for transferring the files to the hosting server, any problem that occurs after the successful transfer is complete is outside the scope of these forums. In short: We only provide support for transferring the files (that was completed successfully). We don't deal with any file contents or code (FileZilla ignores contents).

For getting your HTML and CSS code to work on the hoster's server, you need to ask your hoster (or an HTML community). We can't help with that, as we don't provide webspace or hosting of any kind.