www.webdeveloper.com
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2011
    Posts
    33

    stylesheet working on 1 computer and not another

    We have a coldfusion project that uses style sheets. They are working on our development area but not in the real area.
    We would be happy to get some advice about what sort of things can cause this to happen.

  2. #2
    Join Date
    Mar 2011
    Posts
    794
    There are really only two reasons why this occurs. Either the stylesheet does not reside on the server in the expected location or the reference URI that points to the stylesheet is malformed. If you can retrieve the stylesheet file in your browser by entering its URL in the address bar, then you've eliminated the first possibility and you can concentrate on the second - which is by far more common and is generally due to an incorrect relative address in the 'href' attribute of the <link> element.
    Rick Trethewey
    Rainbo Design

  3. #3
    Join Date
    Jan 2011
    Posts
    33
    The same stylesheet is in both places - same date and time modified. Tried a small test program in both places. It worked in one but not the other.
    A network person changed anonymous user rights to see the css file but it doesn't look like it helped.
    What else can be causing this?

  4. #4
    Join Date
    Mar 2011
    Posts
    794
    There is no other cause. At some point, the HTML document is unable to load/locate the stylesheet in the new environment. Either the stylesheet file does not exist or is unavailable in the expected location/folder/directory or the reference to the stylesheet in the parent HTML document is incorrect. Did you try loading the stylesheet directly in your browser as I suggested?
    Rick Trethewey
    Rainbo Design

  5. #5
    Join Date
    Jan 2011
    Posts
    33
    Yes. In the place where the stylesheet works, I was prompted to download it and a coworker who uses Dreamweaver did the same thing and it Dreamweaver opened it. We both got unable to access this file errors on the other system.

    Another thing that's happenning is that a coworker's using a Javascript calander script and it's coming up as an X instead of the calendar display.

  6. #6
    Join Date
    Mar 2011
    Posts
    794
    OK, then it sounds like the stylesheet is in the correct directory. That means that your href's in your HTML code are incorrect for the problem environment. Load the problem webpage in your browser and select "View Source" so you can see the HTML code for these tags. That will show you the URL where the browser is expecting the stylesheet to be. From there, it should be easy to correct the issue.
    Rick Trethewey
    Rainbo Design

  7. #7
    Join Date
    Jan 2009
    Posts
    3,341
    Quote Originally Posted by neginf View Post
    Yes. In the place where the stylesheet works, I was prompted to download it and a coworker who uses Dreamweaver did the same thing and it Dreamweaver opened it. We both got unable to access this file errors on the other system.

    Another thing that's happenning is that a coworker's using a Javascript calander script and it's coming up as an X instead of the calendar display.
    You mean you got a "page cannot be found" on one system but not the other when going directly to the URL you expect the css file to reside at?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



Recent Articles