Welcome Guest, Not a member yet? Register   Sign In
Using Header - Main - Footer Template is getting wierd on IE
#1

[eluser]barisv[/eluser]
Hi,

I am trying to write a admin page that its header and footer are same on all pages. So I decided to create a template to not to write (copy-paste) them all pages. Just the main page will be the dynamic one. I did it the way as below:


admin_template.php

Code:
<?php $this->load->view('includes/admin_header.php'); ?>

<?php $this->load->view($main_content); ?>

<?php $this->load->view('includes/admin_footer.php'); ?>

So I can call it from the function I wanted.

Code:
function index()
{
    $data = array(
            
        'main_content' => 'referanslar',
        
        );

$this->load->view('includes/admin_template',$data);
}

Now, the problem is, this way is breaking the style for all IE versions. The other browsers are working fine. Then I deleted the template and I put header, main and footer in one page , it works nice for also IE even if the both way produces the exactly same output when I looked at the source code.

What is the problem ? Thanks in advance for your help.

Screenshots of problem

IE Problem : http://i54.tinypic.com/qsqczb.jpg

This is what I wanted: http://i56.tinypic.com/54sv2s.jpg


Messages In This Thread
Using Header - Main - Footer Template is getting wierd on IE - by El Forum - 03-26-2011, 03:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB