Jump to content

site layout design and templating


aircooled57

Recommended Posts

hi guys

in terms of web design , what is the best way of templating a site that has a consistent header and footer and logo in the corner etc but the content in between varies for example on one of my pages i have a large content box in between.

 

and on a different page i have three small divs instead of the large box .

 

would it be to save the header as an include

 

the footer as an include.

 

and then build seperate templates for different page styles and obviously call the header and footer in these templates

 

im stuck  :-[

Link to comment
Share on other sites

yeah, the simplest way is to make a header.inc.php and a footer.inc.php file. i usually start with one page, write the HTML for the entire thing, the split it into the two files leaving just the content. then, on each page, just include the header/footer files

Link to comment
Share on other sites

ok  :) i tottaly get it , its just i was having a look at a few sites on the web and was like hmm ok ,they have the same header ,menu and footer , but the content sections are sometimes different ie , this page has got a large content box and this one a small content box and to small divs at the side.

 

but i guess if i have the header and footer in includes then i can call these files in my design and alter the content section accordingly to the page type .

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.