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 4 of 4
  1. #1
    Junior Member
    Join Date
    Feb 2006
    Posts
    3
    Member #
    12505
    Hello!

    I've been using XHTML and CSS for sometime now, and I love how CSS can take a standard, well written XHTML document (with paragraphs, headings and links) with no layout and then arrange all the text and add some graphics... And then any well written HTML document can get the same formatting by linking to the same Style Sheet. (I learnt alot from CSS Zen Garden website for formatting!)

    But what about other consistent things such as navigation links which need to be consistent through out all pages? Is there some way to make a web page import this information in the same way several HTML pages can share a CSS?

    I know about frames or using a HTML <object> but this doesn't really work for what I want to do, since then the links are imprisoned within that area and can't interact with the rest of the page...

    Anyway hope this isn't too silly a question...

  2.  

  3. #2
    Senior Member
    Join Date
    May 2005
    Location
    Essex, United Kingdom
    Posts
    200
    Member #
    10131
    A good solution to this problem would be using server side includes. Most programming languages e.g. PHP, ASP, have this capability built in. You can also use SSI, this is a language created entirely for including different pages, most hosts support them and it is very easy to learn.

    SSI Tutorial: http://http-server.carleton.ca/~dmcfet/html/ssi.html
    ASP Includes Example: http://www.powerasp.com/content/code...s/includes.asp
    More Information About Includes and Examples: http://www.outfront.net/tutorials_02.../includes2.htm

  4. #3
    Senior Member Shani's Avatar
    Join Date
    Nov 2004
    Posts
    1,140
    Member #
    8171
    If I understand your question correctly, you just want to make all your links consistent. That simple? This will affect any thing inside an <a href> tag. In your CSS document, use the following to define the different aspects of your link:

    a:link
    a:active
    a:hover
    a:visited
    Shani

    I have an eye for detail like you'd never believe.

  5. #4
    Senior Member karinne's Avatar
    Join Date
    Dec 2003
    Location
    Aylmer QC Canada
    Posts
    1,607
    Member #
    4335
    Liked
    8 times
    Continuing from dchesterton, here's the PHP include() function
    [a web design portfolio - Currently NOT AVAILABLE for work | web design | Re-coding | PSD-to-HTML]
    I'm also on: virb - facebook - twitter - flickr - del.icio.us


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 08:20 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com