Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7
  1. #1
    Junior Member Stopdoor's Avatar
    Join Date
    Aug 2011
    Posts
    14
    Member #
    28990
    Liked
    1 times
    So, I've primarily been coding a website myself using css/html. A fun project to learn.

    I've got a design set up, and all that, and an external css file (and javascript file for some little doo-dads). These are useful because I can edit the one file and all my pages (luckily only a few so far) change with it.

    But not everything fits into my css file, like my sidebars. I'm using that old technique of a background image and hover state to make rollover buttons, and that along with my logo really don't fit into the css file.

    So I'm wondering if there's a way I can have a sort of universal HTML file used as a template, and I would only have separate files for the main content HTML.

    As sort of reference, here's a picture.

    http://i293.photobucket.com/albums/m...tetemplate.png

    I want to have that as a template, and be able to place content HTML inside it, so to speak. I'm thinking this is out of my basic range to just mess around and learn, and I'm not sure if there's a simple solution to it like with css files. If there's any other solutions on how to make a more easily maintained template that's good too.

  2.  

  3. #2
    Senior Member BallardStudio's Avatar
    Join Date
    Jul 2011
    Posts
    143
    Member #
    28552
    Liked
    6 times
    Photoshop and slices is probably the best place for you to start.
    I'm an art director crossing paths between print and web design.
    http://www.ballardstudio.com

  4. #3
    Senior Member Webzarus's Avatar
    Join Date
    May 2011
    Location
    South Carolina Coast
    Posts
    3,322
    Member #
    27709
    Liked
    770 times
    If you're using a windows server, use asp or asp.net includes.

    If youre using a Linux server, then use php includes.

    Create all the base components that don't change in their own file.

    You can then create a template file that has all the includes embedded in it, add content , do ansave as "new file name "...

    Then if the menu changes, or you want to change to header or footer, etc... Change 1 file and done.

  5. #4
    WDF Staff George Dolidze's Avatar
    Join Date
    Apr 2011
    Location
    Irvine, CA
    Posts
    2,487
    Member #
    27540
    Liked
    416 times
    You can, but not for the whole page. You can use 'PHP file includes' to insert things like headers and footers. (because they repeat across all the pages). So when you modify the .php file for the header, for example, it changes it on every page that you inserted it into.
    Ronald Roe likes this.
    My freelancer website: DolidzeDesign



    You only need a parachute if you plan on skydiving twice.

  6. #5
    WDF Staff George Dolidze's Avatar
    Join Date
    Apr 2011
    Location
    Irvine, CA
    Posts
    2,487
    Member #
    27540
    Liked
    416 times
    Quote Originally Posted by Webzarus, post: 217135
    If you're using a windows server, use asp or asp.net includes.

    If youre using a Linux server, then use php includes.

    Create all the base components that don't change in their own file.

    You can then create a template file that has all the includes embedded in it, add content , do ansave as "new file name "...

    Then if the menu changes, or you want to change to header or footer, etc... Change 1 file and done.
    Damnit, you ninja'd your way in before me
    My freelancer website: DolidzeDesign



    You only need a parachute if you plan on skydiving twice.

  7. #6
    Senior Member Webzarus's Avatar
    Join Date
    May 2011
    Location
    South Carolina Coast
    Posts
    3,322
    Member #
    27709
    Liked
    770 times
    Sorry ?

  8. #7
    WDF Staff George Dolidze's Avatar
    Join Date
    Apr 2011
    Location
    Irvine, CA
    Posts
    2,487
    Member #
    27540
    Liked
    416 times
    We were typing at the same time, and you finished first. We said basically the same thing.
    My freelancer website: DolidzeDesign



    You only need a parachute if you plan on skydiving twice.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:24 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com