Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] <div> starting in header template and ending in footer template
#1

(This post was last modified: 07-29-2018, 01:51 AM by misterSerious.)

So I know that the header template should look like so, 
Code:
<html>
       <head>
               <title>CodeIgniter Tutorial</title>
       </head>
       <body>

               <h1><?php echo $title; ?></h1>

and then the footer can be,
Code:
              <em>&copy; 2015</em>
       </body>
</html>

this is clear. My trouble, however, is when I wrap the content of body (minus the scripts) in a div like so,
Code:
<!--header template-->
<html>
     <head>
          <title>CodeIgniter Tutorial</title>
     </head>
     <body>
          <div>
                <h1><?php echo $title; ?></h1>


<!--footer template-->

               <em>&copy; 2015</em>
           </div>

          <div>
          </div>

     </body>
</html>

it doesn't take! The page rendered has the first closing <div> positioned after the second closing <div> segment. Can anyone tell me how to get the page rendered like I want it to?
Reply


Messages In This Thread
[SOLVED] <div> starting in header template and ending in footer template - by misterSerious - 07-19-2018, 08:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB