Css Scripts

Started on the old forum in June 2008 · view the original in the archive · old links redirect here

3 replies · 567 views · started 18 years ago · 1 min read

3 participants
alesh Lead · 604 posts #2

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

eeeeerrr....

rukiya Lead · 569 posts #3

Its called External CSS follow like this test.css

body{ background-color: gray } 
p { color: blue; } 
h3{ color: red; }

case 1 if you put the css file in same dir usage

<?
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

echo "<link rel="stylesheet" type="text/css"
href="subdirname/test.css" />";

case 3 if you put the css file in diffrent dir use

echo "<link rel="stylesheet" type="text/css"
href="../test.css" />";
synergyx Developer · 100 posts #4

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

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close