kc0gcm Posted February 6, 2009 Report Share Posted February 6, 2009 ok I got the header and footer done but I have a few problems I have watched all the tutorials and there is nothing that says were to put the part of code that is between the header and the footer.. also now the main info that goes between the header and footer has now lost all formatting.. i have included a pic to help u understand my problem.. Quote Link to comment Share on other sites More sharing options...
Leiserson Posted February 6, 2009 Report Share Posted February 6, 2009 Ok i can help with this one... Now lets say your header.tpl looks like this <div id="maincontent"> <div id="Header"> Header Here </div> <div id="Navbar"> Navbar here </div> also remember to make sure your footer.tpl finishes the main contents div off. For more information consult the docs Now the problem is that you are centering the header and navbar but not the main content... No im sure you know this. Simply add... margin-right: auto; margin-left: auto; to your contents div in your styelsheet to center it Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 7, 2009 Administrators Report Share Posted February 7, 2009 Basically you open a div tag or something at the end of the header.tpl, and then close it at the start of the footer.tpl. The system will automatically insert everything in between, but when you leave that div open, it'll all go into that div Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.