css as plugin |
[eluser]Unknown[/eluser]
Sorry but I'am new to Code Igniter. I have problem with css and after reading forum for css, I come with my own solution. This was my step to overcome my css link problem. 1) I make a folder in system as css. This folder will store css and its file. for my example I download superior css from http://www.freecsstemplates.org 2) I put the style and image in the file like this: style path = system/css/superior/style.css image path = system/css/superior/image/ (image is folder) 3) in plugin, I add my plugins to call the css like this: plugin name = superior_css_pi.php content = <?PHP $path = 'http://'.$_SERVER['HTTP_HOST'].'/system/css/superior/style.css'; ?> <link href="<?PHP echo $path;?>" rel="stylesheet" type="text/css" media="screen" /> 4) Then I call the plugin from view like this: <html> <head> <?PHP $this->load->plugin('superior_css'); ?> </head> <body> ....... </html> it work for me but will this affect code igniter process, will it slow code igniter down? one major problem is when I open my server page with firefox, it turn out to be ok. But when I open my server with IE the templates not align in center, it align to left side of IE. Can anyone help? |
Messages In This Thread |
css as plugin - by El Forum - 04-29-2009, 03:20 AM
css as plugin - by El Forum - 04-29-2009, 03:37 AM
css as plugin - by El Forum - 04-29-2009, 03:38 AM
css as plugin - by El Forum - 04-29-2009, 03:40 AM
css as plugin - by El Forum - 04-29-2009, 03:42 AM
css as plugin - by El Forum - 04-29-2009, 03:46 AM
css as plugin - by El Forum - 04-29-2009, 04:20 AM
css as plugin - by El Forum - 04-29-2009, 04:28 AM
css as plugin - by El Forum - 04-29-2009, 06:33 AM
css as plugin - by El Forum - 04-29-2009, 07:11 AM
css as plugin - by El Forum - 04-29-2009, 07:18 AM
css as plugin - by El Forum - 04-29-2009, 07:19 AM
css as plugin - by El Forum - 04-29-2009, 07:27 AM
css as plugin - by El Forum - 04-29-2009, 07:34 AM
css as plugin - by El Forum - 04-29-2009, 06:41 PM
css as plugin - by El Forum - 04-29-2009, 07:01 PM
|