php with css

Discussion in 'Programming/Scripts' started by complete, Dec 10, 2015.

  1. complete

    complete New Member

    How do I use CSS with PHP? I have tried to do this according to examples I found by searching online. But nothing worked. Please help.
     
  2. sjau

    sjau Local Meanie Moderator

    not really sure what you mean. css files are just linked in the header section of html files.
     
  3. vsolmyr

    vsolmyr New Member

    Do you use a framework?
    sjau is right:
    Code:
    <html>
    <head>
    <!--CSS goes here-->
    <link rel="stylesheet" type="text/css" href="mystyle.css">
    </head>
    <body>
    hi
    </body>
    </html>
     
  4. ztk.me

    ztk.me ISPConfig Developer ISPConfig Developer

    Maybe it would be helpful to know what you wanted to achieve? Which example did you use? What is your goal?

    Edit: @vsolmyr lulz this is a rather old thread :D
     
    paolo2 likes this.
  5. danny94

    danny94 New Member

    Import/ incluse css files into php page.
    include'CSS/main.css';

    OR if you have a php file and like to output style lines, just use echo.
     
    paolo2 likes this.

Share This Page