rejetto forum

CSS w/ 2.1

Guest · 15 · 7659

0 Members and 1 Guest are viewing this topic.

Jack Prominski

  • Guest
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


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
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.


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
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?



Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
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.


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
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 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.
« Last Edit: December 01, 2006, 01:21:26 PM by That_Stevens_Guy »


Jack Prominski

  • Guest
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


Firefox


IE


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
you can try
1. clearing the cache
2. posting here your actual MIME setting, so we can see if anything is wrong


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
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]
« Last Edit: December 01, 2006, 03:12:55 PM by That_Stevens_Guy »


Jack Prominski

  • Guest
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.


Jack Prominski

  • Guest
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.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile

Offline pukstpr12

  • Occasional poster
  • *
    • Posts: 2
    • View Profile

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
it's YOUR firefox, have a look

[attachment deleted by admin]


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
It could depend on the internal address you are using to access the local host.

http://127.0.0.1:Port = The one i use.

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
= 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
« Last Edit: December 02, 2006, 03:12:43 AM by That_Stevens_Guy »


Offline MarkV

  • Tireless poster
  • ****
    • Posts: 764
    • View Profile
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
http://worldipv6launch.org - The world is different now.