rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: Jack Prominski on December 01, 2006, 01:10:58 AM
-
I am wondering if CSS is supported in version 2.1. I place all the files into HFS, but the index.html file does not load the css. Is CSS not supported, or am I doing something wrong?
Thank You
-
here lots of people are working with css.
you are likely doing something wrong.
you should find useful informationo looking into the log, and see what your browser is asking for (disable log menu -> log what -> "only served requests").
you may find more help showing us your pages.
-
If you are talking about css stylesheets, you have to create a MIME type, i am unsure if Rejetto has created a default css MIME type in these latest builds but i had to create one to test new things on my latest template builds.
I had this same problem when hosting websites i have made at university that use css stylesheets, It just would not load the css no matter what i did.
Below is my guide to create a MIME type for stylesheets (e.g. style.css):
menu > other options > MIME types... then make a new one that is *.css | text/css, hit apply, then i found closing then re-opening HFS made it work.
Rejetto is this in the latest build? (i cannot tell because i saved my settings with this applied)
If not would it be possible for you to put this in as a default setting?
-
Rejetto is this in the latest build? (i cannot tell because i saved my settings with this applied)
yes, it is in the default settings.
but if you started with version 1.6, you mantained its default.
-
I started with 2.0, and i found my HFS did not have this set up, strange...
OOOH!! i just remembered, doing this allows Firefox to load the css stylesheets, if this person was testing in Firefox they would have this problem with the css sheets not showing.
http://www.rejetto.com/forum/index.php?topic=3872.0 (http://www.rejetto.com/forum/index.php?topic=3872.0) this is the topic that we discussed this issue.
If anything else, they were having a different problem completely :P sometimes tangents can be fun.
-
I tried loading it in Internet Explorer and the css loaded fine. Yes, I am using an external style sheet. When I'm in Firefox it will not load. I added a .css MIME type (which was not already in 2.1b), but it still would not work in firefox.
HFS
(http://img285.imageshack.us/img285/8171/hfscd5.th.jpg) (http://img285.imageshack.us/my.php?image=hfscd5.jpg)
Firefox
(http://img92.imageshack.us/img92/6351/firefoxor7.th.jpg) (http://img92.imageshack.us/my.php?image=firefoxor7.jpg)
IE
(http://img285.imageshack.us/img285/9865/ieoz4.th.jpg) (http://img285.imageshack.us/my.php?image=ieoz4.jpg)
-
you can try
1. clearing the cache
2. posting here your actual MIME setting, so we can see if anything is wrong
-
Hmm...
I know for a fact that doing all this does work, because we even had css sheets changing to show different styles of my template. The final product worked in Opera 9.02, IE6, Firefox 2.0, Firefox 1.5 (and i assume all other browsers)
Did you try closing and opening HFS. (bit like hitting a television to get a signal but it worked for me)
Does your css sheet link using this code in the html, and is it in the <head> of the document:
<link rel="stylesheet" type="text/css" href="style.css" />
Check the Firefox Error console. Tools > Error Console (if wrong a MIME error should show in there)
Is the MIME setting like the image attached:
[attachment deleted by admin]
-
i tried closing hfs, but that didn't work. And the code is fine in the html. I will check the error console to see if that has anything.
-
Ok, it works in firefox on every computer ive tried (on local network and off) and it works...except for the local computer in which HFS is running. This isn't really important to me... just as long as it works on other computers.
-
try hitting SHIFT + F5 on firefox
-
Shift F5 doesnt do anything for me.
the adress is http://pukstpr12.no-ip.org
-
it's YOUR firefox, have a look
[attachment deleted by admin]
-
It could depend on the internal address you are using to access the local host.
http://127.0.0.1:Port (http://127.0.0.1:Port) = The one i use.
http://127.1.1.0:Port (http://127.1.1.0:Port) = one i used to use, before i knew of the better one above, but found the link between my computer and HFS struggled to load images.
http://10.1.1.10:Port (http://10.1.1.10:Port) = this is the static IP of my computer within the router network, it also works to view the page.
Other than that, i cant think of why viewing it on local host would fail with a css sheet.
Ye, i see that when i access the page aswell :D
-
Yup, also working for me.
Maybe some elements of your site try to redirect using the external address. I had this problem when I hosted a local forum software, from within my network the forums' templates/styles would not load properly because the BBS software attempted to load 'em from external address.
MarkV