CodeIgniter Forums
Help With LINK stylesheet - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Help With LINK stylesheet (/showthread.php?tid=41618)



Help With LINK stylesheet - El Forum - 05-12-2011

[eluser]Unknown[/eluser]
is it normal for codeigniter to put <STYLE> tag in the <BODY> when it is viewed in the browser?

I have a problem all of my stylesheet inline or external are being put inside the body tag instead in the HEAD tag.


Help With LINK stylesheet - El Forum - 05-12-2011

[eluser]darrentaytay[/eluser]
Codeigniter doesn't determine where your stylesheet goes, it's something to do with your HTML in your view. Do you have a link to your page or can you post the problem source code?


Help With LINK stylesheet - El Forum - 05-12-2011

[eluser]Unknown[/eluser]
This is my code inside the template view file

Code:
<?=doctype('xhtml11')?>
<html >
<head>
    <title></title>
    <meta http-equiv="Cache-control" content="public" />
    <meta name="description" content="desc" />
    <meta name="keywords" content="asd" />
    <meta name="distribution" content="Global" />
    <meta name="rating" content="General" />
    <meta name="Robots" content="index,follow" />
    <meta name="Revisit-after" content="7 Days" />
    <style type="text/css">
        body{
            background-color: transparent;
        }
    </style>
    <?php
        $link = array(
                'href' => base_url() . 'css/new.css',
                'rel' => 'stylesheet',
                'type' => 'text/css',
                'media' => 'all'
            );
    echo link_tag($link);
    ?>
</head>

<body>


</body>

</html>