MyBB Community Forums

Full Version: Create a css php file?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Been trying to figure out this a while now can't find anything nor google is helping either..
Anybody has any ideas how to do this? Example..
https://www.ezeeforums.com/images/goalzm...ction=live

Thank you.
Explain a bit more on what you're trying to achieve so we can help you.
Nevermind I managed to do it.


Had to import this inside the php file.

<?php header("Content-type: text/css; charset: UTF-8"); ?>
@import url(mobile.css);
Were you asking how to import a stylesheet inside of a PHP file?

Instead of using @import you could just use HTML.

<link type="text/css" rel="stylesheet" href="mobile.css" />
(05-24-2018, 05:15 PM)Corey H Wrote: [ -> ]Were you asking how to import a stylesheet inside of a PHP file?

Instead of using @import you could just use HTML.

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

Both work fine bro thanks. Smile
I think Livewire wanted to use PHP to create a dynamic CSS document.