Javk
  • Javk
Can somebody help me with php? I have a css file and I would like to use those styles in the php code...is that possible?
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
e.mccormick
  • e.mccormick
When you output web pages with PHP, you basically print the HTML to the web port. I see no reason why including CSS as yet more output would be a problem. A little research shows people doing a lot with it: http://stackoverflow.com/questions/13201451/how-to-use-css-style-in-php https://css-tricks.com/css-variables-with-php/ http://code.tutsplus.com/articles/supercharge-your-css-with-php-under-the-hood--net-6409
woodrow73
  • woodrow73
Wow that css embedded in a php page, and referenced by the html page with a is really cool Nice examples
woodrow73
  • woodrow73
But ya.. looks pretty easy to put css in the file.. either using echo "//css" or simply ending the php tag ?>, then putting your html/css like you normally would - then you can place more php tags as you need them.. I think

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

e.mccormick
  • e.mccormick
Yep. The issue is escaping things to have the right number of \ in there, and things like that, which is the sae issue with PHP to HTML.
Javk
  • Javk
Thankyou, I got it. I'm working on a project and wasn't looking at all the files...it really was rather silly...I failed to look at the php file that contained the functions that defined what was going to be output to the html file.

Looking for something else?

Not the answer you are looking for? Search for more explanations.