Css Scripts

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Css Scripts

    I dont know if im just having a bad day, but i uploaded another site to a sub-directory and for sum reason it wont load the css script.

    Code:
     $theme = grey.css
    Code:
     echo webhead($uthm,$stitle);
    this is whats on my main page. www.sitename.co.za/index.php and it works.


    although i use the same code above on www.sitename.co.za/subdir/index.php and it doesnt work.

    #2
    Upload ur .css files 2 tht subdir also.... Or change the url of location .css files in tht subdir...
    sigpiceeeeerrr....

    Comment


      #3
      Its called External CSS
      follow like this
      test.css
      Code:
      body{ background-color: gray } 
      p { color: blue; } 
      h3{ color: red; }
      case 1
      if you put the css file in same dir
      usage
      Code:
      <?
      echo "<html><head>";
      echo "<link rel="stylesheet" type="text/css"
      href="test.css" />";
      echo "</head><body>"
      echo "<h3> A Red Header </h3>";
      echo "</body></html>";
      ?>
      case 2
      if you put the css file in same dir but in a sub dir
      use
      Code:
      echo "<link rel="stylesheet" type="text/css"
      href="subdirname/test.css" />";
      case 3
      if you put the css file in diffrent dir
      use
      Code:
      echo "<link rel="stylesheet" type="text/css"
      href="../test.css" />";

      Comment


        #4
        ok i did it, i dont know why i didnt think of that myself. but it worked. tnx bro

        Comment

        Working...
        X