Welcome Guest, Not a member yet? Register   Sign In
css as plugin
#16

[eluser]slowgary[/eluser]
abim, I usually keep it simple and just include the css file in the page's head. I think it's overkill writing any PHP functions for something so easy, unless of course the stylesheets will vary by page.

The answer to your actual question is not related to CodeIgniter or PHP, it's a CSS question so it's probably better suited for another forum.

The reason your template does not center align in IE is most likely because you are not using a proper doctype, or the doctype is not on the first line of the page. To center your page (or any page element), you must fix the width and set it's left and right margins to auto. I usually fix the width of <body> to whatever resolution I want my page to work in and set it's margin to auto.

If that doesn't help, post a link to your template and we'll figure it out.


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



Theme © iAndrew 2016 - Forum software by © MyBB