Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Can I link to external CSS menu
Old 03-25-2006, 10:03 PM Can I link to external CSS menu
Experienced Talker

Posts: 32
Location: Indiana, USA
Trades: 0
I want a CSS menu on each page, the menu will be the same on all pages. Is there a way to link to it and have it as an external file, or do I have to code it into every page?

__________________
They have computers, and they may have other weapons of mass destruction. - - Janet Reno
Smoking Man is offline
Reply With Quote
View Public Profile Visit Smoking Man's homepage!
 
 
Register now for full access!
Old 03-26-2006, 12:56 AM Re: Can I link to external CSS menu
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
You can use server side includes. I just did this for a web site I made for someone and it is such a headache relief. Just do a search on SSI or server side includes. There are several ways to do them, some with php, some without. Do some searching around and decide the way you like best.
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 03-27-2006, 06:33 AM Re: Can I link to external CSS menu
amygdela's Avatar
Super Talker

Posts: 111
Trades: 0
SSI is nice, but you need to save your page as filename.shtml to make them work. A PHP include on the other hand just works on .php pages:

<?php include ("yourfile.php"); ?>
__________________

Please login or register to view this content. Registration is FREE
amygdela is offline
Reply With Quote
View Public Profile
 
Old 03-27-2006, 01:24 PM Re: Can I link to external CSS menu
Recrehal's Avatar
Experienced Talker

Posts: 39
Location: Aachen, Germany
Trades: 0
How about creating a template? Then you'll have that one line of code in every website you create. Or just start with the same file everytime; you probably do that with the rubbish <header> <title> <body> anyway. As for external CSS: I'm sure you can do absolute calls like this <link rel="stylesheet" type="text/css" href="http://www.bla.org/intro.css">
Recrehal is offline
Reply With Quote
View Public Profile Visit Recrehal's homepage!
 
Old 03-30-2006, 12:22 AM Re: Can I link to external CSS menu
The Ape's Avatar
Super Talker

Posts: 129
Trades: 0
Php include.

I put up the example below for someone else wanting his frames to work a certain way. I think this will help you as well. All you need to do is create a file with your menu, still using html, and save it as menu.inc Then in all the pages you want it to appear, you simply add <?php include ("menu.inc"); ?>

*note* your pages names have to end with .php rather than .html.

http://www.apethumb.arttriad.com/testphp/page_1.php
__________________

Please login or register to view this content. Registration is FREE

Last edited by The Ape; 03-30-2006 at 12:24 AM..
The Ape is offline
Reply With Quote
View Public Profile Visit The Ape's homepage!
 
Reply     « Reply to Can I link to external CSS menu
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20969 seconds with 12 queries