Question:

CSS template only applied to homepage other pages are left white with text. URL = www.mofene.tk thank you!?

by  |  earlier

0 LIKES UnLike

Before the site was pure HTML which I coded myself, I decided to apply CSS to it but I do not know CSS so I downloaded a free template.

 Tags:

   Report

3 ANSWERS


  1. You have a pathing problem.  All of your links end in a "/" which tells the browser they are links to folders not documents.  So when the browser wants to load "style.css", it requests:

    http://www.freewebs.com/mofene/downloads...

    The request fails, so the page loads without styles.

    You can fix this either by removing the slashes from the links or by changing your <link> tag from:

    <link href="style.css" rel="stylesheet" type="text/css" />

    to:

    <link href="http://www.freewebs.com/mofene/sty... rel="stylesheet" type="text/css" />

    By using an absolute URL in the href for the CSS <link>, the browser should successfully load the CSS irrespective of URL pathing issues in your links.


  2. You cannot use JavaScript between two different domains - it's a security issue.

    So if the any file is located on mofene.tk and the actual site is on FreeWebs (or the other way around), calling a JavaScript function or any other object from within the frame to the container that's on a different domain will fail - and may subsequently break anything placed after the code that calls the cross-domain function.

    I'm a programmer, and have Script debugging activated at all times, and upon opening any of the pages in mofene.tk, I get an "access denied" error.

  3. Since you are using frames it's difficult to see what is going on.

    Be sure the line similar to this "<LINK REL=StyleSheet HREF="style.css" TYPE="text/css">  " is in all of your pages (or the CSS code specifically.)

    also, the LINK would need to reference the .css file relative to where the file is appropriately.

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.