Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jul 2005
    Location
    -
    Posts
    2,995
    Tokens
    0

    Latest Awards:

    Default hmmm is there any way to include css file

    right i have my css file with the css i want added to every page:
    http://www.hab-tunes.com/Pages/Style.css

    PHP Code:
    <? 
    include("Style.css"); 
    ?>
    will this work??

  2. #2
    Join Date
    Feb 2006
    Location
    Inside your PC
    Posts
    1,626
    Tokens
    0

    Latest Awards:

    Default

    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

  3. #3
    Join Date
    Apr 2005
    Location
    South Wales!
    Posts
    3,535
    Tokens
    2,836

    Latest Awards:

    Default

    yes it should. I did have the code but cant find it. It looks something like that though.

  4. #4
    Join Date
    Jul 2005
    Location
    -
    Posts
    2,995
    Tokens
    0

    Latest Awards:

    Default

    just that it saves me writing the css on every page
    edito;

    Code:
    <style><!-- @import url(http://www.hab-tunes.com/Pages/Style.css); --></style>
    that seems to work
    Last edited by Jamie.; 01-10-2006 at 07:44 AM.

  5. #5
    Join Date
    Mar 2005
    Posts
    6,366
    Tokens
    325

    Latest Awards:

    Default

    Surely you know the code for adding CSS by HTML. No PHP needed. x]
    Code:
    <link rel="stylesheet" type="text/css"
    href="css.css">
    goodbye.

  6. #6

    Default

    Quote Originally Posted by [ALEX] View Post
    Surely you know the code for adding CSS by HTML. No PHP needed. x]
    Code:
    <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

  7. #7
    Join Date
    Jul 2005
    Location
    -
    Posts
    2,995
    Tokens
    0

    Latest Awards:

    Default

    i choose php coz my pages r php n i thought the php include may have worked obviously not

  8. #8
    Join Date
    Mar 2006
    Location
    Scotland
    Posts
    1,012
    Tokens
    175

    Latest Awards:

    Default

    PHP could probably work but the HTML way is the most commenly used and most effective.You might be able to use:

    PHP Code:

    <?include once("style.css"); ?>
    But I would reccomend the HTML way. Btw PHP way is not tried and tested.


    You don't like me
    Chances are I don't like you.

  9. #9
    Join Date
    Jul 2005
    Location
    -
    Posts
    2,995
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by RichardKnox View Post
    PHP could probably work but the HTML way is the most commenly used and most effective.You might be able to use:

    PHP Code:

    <?include once("style.css"); ?>
    But I would reccomend the HTML way. Btw PHP way is not tried and tested.
    Lol doesnt work, fatal error

  10. #10

    Default

    Just use the html way.
    Html can be used in a .php document..

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •