Upload ur .css files 2 tht subdir also.... Or change the url of location .css files in tht subdir...
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.cssthis is whats on my main page. [Only registered and activated users can see links. Click Here To Register...] and it works.Code:echo webhead($uthm,$stitle);
although i use the same code above on [Only registered and activated users can see links. Click Here To Register...] and it doesnt work.
Upload ur .css files 2 tht subdir also.... Or change the url of location .css files in tht subdir...
eeeeerrr....
Its called External CSS
follow like this
test.css
case 1Code:body{ background-color: gray } p { color: blue; } h3{ color: red; }
if you put the css file in same dir
usage
case 2Code:<? 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>"; ?>
if you put the css file in same dir but in a sub dir
use
case 3Code:echo "<link rel="stylesheet" type="text/css" href="subdirname/test.css" />";
if you put the css file in diffrent dir
use
Code:echo "<link rel="stylesheet" type="text/css" href="../test.css" />";
ok i did it, i dont know why i didnt think of that myself. but it worked. tnx bro
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks