Jump to content

Multiple Layouts


Pachman3000

Recommended Posts

Well I was just wondering, I'm on this site where you can choose the layout-colors of your page manually, but I was wondering if you needed a serverside script that made a new css file or if indeed you could simply let it be a php file? thanks!

 

In this case it's possible to have pre-defined stylesheets on your server and call them using JS

 

<link id="sheet-screen" ..

 

var link = document.getElementById('sheet-screen');

link.setAttribute('href', newSheet);

 

The browser will automatically apply the new styles.

Link to comment
https://forums.phpfreaks.com/topic/200824-multiple-layouts/#findComment-1055020
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.