PDA

View Full Version : hmmm is there any way to include css file



Jamie.
01-10-2006, 07:34 AM
right i have my css file with the css i want added to every page:
http://www.hab-tunes.com/Pages/Style.css


<?
include("Style.css");
?>

will this work??

-::Mr.Dave::-
01-10-2006, 07:35 AM
Theres a html code for it

I have the style written in style tags in my HTML myself but only cuz nothing else would work

Anyway i know theres a simple html code that goes in the head or body tags

awelsh
01-10-2006, 07:37 AM
yes it should. I did have the code but cant find it. It looks something like that though.

Jamie.
01-10-2006, 07:38 AM
just that it saves me writing the css on every page :(
edito;


<style><!-- @import url(http://www.hab-tunes.com/Pages/Style.css); --></style>

that seems to work :)

alexxxxx
01-10-2006, 08:10 AM
Surely you know the code for adding CSS by HTML. No PHP needed. x]


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

Butter'dToast
01-10-2006, 08:30 AM
;2291255']Surely you know the code for adding CSS by HTML. No PHP needed. x]


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

ROFLMAO,
That is the simplest way and it works on all the popular browsers..
I recommend using that, i dont know why you choose php :s

Jamie.
01-10-2006, 08:43 AM
i choose php coz my pages r php n i thought the php include may have worked obviously not :)

YouFail
01-10-2006, 08:53 AM
PHP could probably work but the HTML way is the most commenly used and most effective.You might be able to use:




<?include once("style.css"); ?>



But I would reccomend the HTML way. Btw PHP way is not tried and tested.

Jamie.
01-10-2006, 09:05 AM
PHP could probably work but the HTML way is the most commenly used and most effective.You might be able to use:




<?include once("style.css"); ?>



But I would reccomend the HTML way. Btw PHP way is not tried and tested.

Lol doesnt work, fatal error :P

Butter'dToast
01-10-2006, 09:46 AM
Just use the html way.
Html can be used in a .php document..

Remix
01-10-2006, 09:51 AM
Just use the html way.
Html can be used in a .php document..
I save my html pages as .php all the time, ease of use.

Want to hide these adverts? Register an account for free!