Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Mar 2004
    Location
    Netherlands
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Layout using CSS

    I am making a website which currently uses frames and a bit of CSS. I must admit I am a bit of a beginner when it comes to CSS, but I am thinking of redoing the site without frames. Would I have to repeat the menu on each individual page?

    I believe there have been other threads how to successfully achieve this with css but I havent been able to find them doing a search. Can anyone point me in the direction of the relevant thread or to a good tutorial? I might also mention some pages on the site will in the future be using ASP too and I would like to know if this will pose any problems with the layout.

    Site is www.noborders.nl

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Take a look at the following

    http://www.huntingground.freeserve.c.../p_update1.htm

    This may give you some idea of one way it can be done

  • #3
    me'
    me' is offline
    Senior Coder
    Join Date
    Nov 2002
    Location
    Warwickshire, England
    Posts
    1,229
    Thanks
    0
    Thanked 0 Times in 0 Posts
    How I will be doing it is I have one big echo command written in PHP to write out all the headers and stuff I need, and at the top I write this:

    <?php require 'lib.php'; echo_headers(); ?>

    Which includes the source code and calls the function that spews out my header. Then after all the content I have this:

    <? echo_footer(); ?>

    Which echos out all the code that needs to appear after the content (footer, sidebar).
    David House - Perfect is achieved, not when there is nothing left to add, but when there is nothing left to take away. (Antoine de St. Exupery).
    W3Schools | XHTML Validator | CSS Validator | Colours | Typography | HTML&CSS FAQ | Go get Mozilla Now | I blog!

  • #4
    New to the CF scene
    Join Date
    Mar 2004
    Location
    Netherlands
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I kinda get the idea, you just add a reference to a script (php or javascript or whatever) and put this in every document. Is this then the best way? I have dreamweaver and notice you can make a template with editable and ineditable regions (though I havent yet figured out how to get it working). Has anyone used this, or have any opinions about doing it this way?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •