Welcome Guest, Not a member yet? Register   Sign In
Help With LINK stylesheet
#1

[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.
#2

[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?
#3

[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>




Theme © iAndrew 2016 - Forum software by © MyBB