i have a question. i'm having a weird issue with <head> tag in my site.
the initial code looks like this:
CODE
<head>
<title><?php if(isset($page_title)) echo $page_title; ?></title>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html;" charset="utf-8" />
<meta name="keywords" content="<?php if(isset($meta_keywords)) echo $meta_keywords; ?>" />
<meta name="description" content="<?php if(isset($meta_description)) echo $meta_description; ?>" />
<link href="<?php echo base_url() ?>app/css/css/common.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url() ?>app/css/css/header.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url() ?>app/css/css/st.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url() ?>app/css/css/menus.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url() ?>app/css/css/icons.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="<?php echo base_url() ?>favicon.ico" type="image/x-icon" />
<script type="text/javascript" src="<?php echo base_url() ?>app/js/prototype.js"></script>
<script type="text/javascript" src="<?php echo base_url() ?>app/js/scriptaculous.js"></script>
<script type="text/javascript" src="<?php echo base_url() ?>app/js/script.js"></script>
<script type="text/javascript" src="<?php echo base_url() ?>app/js/clock.js"></script>
<!--[if IE ]>
<link href="<?php echo base_url() ?>app/css/css/iefix.css" rel="stylesheet" type="text/css" />
<![endif]-->
</head>
<title><?php if(isset($page_title)) echo $page_title; ?></title>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html;" charset="utf-8" />
<meta name="keywords" content="<?php if(isset($meta_keywords)) echo $meta_keywords; ?>" />
<meta name="description" content="<?php if(isset($meta_description)) echo $meta_description; ?>" />
<link href="<?php echo base_url() ?>app/css/css/common.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url() ?>app/css/css/header.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url() ?>app/css/css/st.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url() ?>app/css/css/menus.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url() ?>app/css/css/icons.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="<?php echo base_url() ?>favicon.ico" type="image/x-icon" />
<script type="text/javascript" src="<?php echo base_url() ?>app/js/prototype.js"></script>
<script type="text/javascript" src="<?php echo base_url() ?>app/js/scriptaculous.js"></script>
<script type="text/javascript" src="<?php echo base_url() ?>app/js/script.js"></script>
<script type="text/javascript" src="<?php echo base_url() ?>app/js/clock.js"></script>
<!--[if IE ]>
<link href="<?php echo base_url() ?>app/css/css/iefix.css" rel="stylesheet" type="text/css" />
<![endif]-->
</head>
while rendered code it looks like this:
CODE
<head>
<title>title</title>
<meta content="no-cache" http-equiv="Pragma"/>
<meta charset="utf-8" content="text/html;" http-equiv="Content-Type"/>
<meta content="keywords" name="keywords"/>
<meta content="description" name="description"/>
</head>
<body dir="rtl">
<link type="text/css" rel="stylesheet" href="http://localhost/rbs/app/css/css/common.css">
</link>
<link type="text/css" rel="stylesheet" href="http://localhost/rbs/app/css/css/header.css">
</link>
<link type="text/css" rel="stylesheet" href="http://localhost/rbs/app/css/css/st.css">
</link>
<link type="text/css" rel="stylesheet" href="http://localhost/rbs/app/css/css/menus.css">
</link>
<link type="text/css" rel="stylesheet" href="http://localhost/rbs/app/css/css/icons.css">
</link>
<link type="image/x-icon" href="http://localhost/rbs/favicon.ico" rel="shortcut icon"/>
<script src="http://localhost/rbs/app/js/prototype.js" type="text/javascript">
</script>
<script src="http://localhost/rbs/app/js/scriptaculous.js" type="text/javascript">
</script>
<script src="http://localhost/rbs/app/js/builder.js" type="text/javascript">
</script>
<script src="http://localhost/rbs/app/js/effects.js" type="text/javascript">
</script>
<script src="http://localhost/rbs/app/js/dragdrop.js" type="text/javascript">
</script>
<script src="http://localhost/rbs/app/js/controls.js" type="text/javascript">
</script>
<script src="http://localhost/rbs/app/js/slider.js" type="text/javascript">
</script>
<script src="http://localhost/rbs/app/js/script.js" type="text/javascript">
</script>
<script src="http://localhost/rbs/app/js/clock.js" type="text/javascript">
</script>
<!--[if IE ]> <link href="app/css/css/iefix.css" rel="stylesheet" type="text/css" /> <![endif]-->
<div class="clsContainer">
</div>
<script type="text/javascript">
</script>
<script type="text/javascript" src="http://www.google-analytics.com/ga.js">
</script>
<script type="text/javascript">
</script>
</body>
<title>title</title>
<meta content="no-cache" http-equiv="Pragma"/>
<meta charset="utf-8" content="text/html;" http-equiv="Content-Type"/>
<meta content="keywords" name="keywords"/>
<meta content="description" name="description"/>
</head>
<body dir="rtl">
<link type="text/css" rel="stylesheet" href="http://localhost/rbs/app/css/css/common.css">
</link>
<link type="text/css" rel="stylesheet" href="http://localhost/rbs/app/css/css/header.css">
</link>
<link type="text/css" rel="stylesheet" href="http://localhost/rbs/app/css/css/st.css">
</link>
<link type="text/css" rel="stylesheet" href="http://localhost/rbs/app/css/css/menus.css">
</link>
<link type="text/css" rel="stylesheet" href="http://localhost/rbs/app/css/css/icons.css">
</link>
<link type="image/x-icon" href="http://localhost/rbs/favicon.ico" rel="shortcut icon"/>
<script src="http://localhost/rbs/app/js/prototype.js" type="text/javascript">
</script>
<script src="http://localhost/rbs/app/js/scriptaculous.js" type="text/javascript">
</script>
<script src="http://localhost/rbs/app/js/builder.js" type="text/javascript">
</script>
<script src="http://localhost/rbs/app/js/effects.js" type="text/javascript">
</script>
<script src="http://localhost/rbs/app/js/dragdrop.js" type="text/javascript">
</script>
<script src="http://localhost/rbs/app/js/controls.js" type="text/javascript">
</script>
<script src="http://localhost/rbs/app/js/slider.js" type="text/javascript">
</script>
<script src="http://localhost/rbs/app/js/script.js" type="text/javascript">
</script>
<script src="http://localhost/rbs/app/js/clock.js" type="text/javascript">
</script>
<!--[if IE ]> <link href="app/css/css/iefix.css" rel="stylesheet" type="text/css" /> <![endif]-->
<div class="clsContainer">
</div>
<script type="text/javascript">
</script>
<script type="text/javascript" src="http://www.google-analytics.com/ga.js">
</script>
<script type="text/javascript">
</script>
</body>
as you can see, all of the <link> and <script> elements moved from <head> to <body>.
shifting all of the <link> and <script> elements under <body> tag makes a gap at the top of the page.
how can i make sure that the <link> and <script> elements remain under <head> tag, and not move under <body>?
thanx
