Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 10-17-2006, 07:35 PM   #1 (permalink)
 
Monster Techie

Join Date: Dec 2004

Posts: 1,145

Snake-Eyes

Default Web design questions

Is is possible to have a page that would act like a style sheet but be more like an HTML page?

On www.meridiantelescopes.com (my father's business), my father and i are trying to figure out a way to have a page that would include everything minus the content in the grey box. That way, we could use that as a template, link it on all his other pages, so if we needed to change something like the PO Box that is listed at the top of every page, we'd only have to make the change on one page.

Are there any good HTML/CSS/Javascript validators available on the internet? I know of the W3C's validator, but it didn't seem to catch everything.

Thank you for all help in advance!
__________________
Snake-Eyes is offline  
Old 10-18-2006, 09:53 PM   #2 (permalink)
 
Newb Techie

Join Date: Sep 2005

Posts: 21

Ross

Send a message via AIM to Ross
Default

Well, I commonly do it by placing the header (up to the point where you declare your content cell) in a header.php or whatever...then you just include it in your page:

PHP Code:
<?php
include('header.php');
?>
You do the same with the footer. Place all the code after your content cell in footer.php or whatever...then use the include only footer.php or whatever you named your file.

When you need to make a change, you do it to the header or footer file..and it affects every page that includes those files.

Of course that method requires PHP, and may not be the best way for you. Just a suggestion. Hope that helps.
Ross is offline  
Old 10-18-2006, 10:04 PM   #3 (permalink)
 
Super Techie

Join Date: Jul 2004

Posts: 274

welsh

Default

theres also server side includes and iframes that can do the same effect.
__________________
<img src=\"http://img208.imageshack.us/img208/1562/signatureew3.gif\">
welsh is offline  
Old 10-18-2006, 10:13 PM   #4 (permalink)
 
Monster Techie

Join Date: Dec 2004

Posts: 1,145

Snake-Eyes

Default

Would using PHP alongside HTML, CSS and Javascript work fine? I can't see why not, but you never know.
__________________
Snake-Eyes is offline  
Old 10-19-2006, 08:34 AM   #5 (permalink)
 
Super Techie

Join Date: Jul 2004

Posts: 274

welsh

Default

Well heres 2 out of the 3 validators you wanted, i dont know about the javascript one, never seen one before.
CSS Validator
HTML Validator

As for PHP working alongside HTML, CSS, and Javascript it will work fine as long as your server your own supports PHP. If it doesnt there are iframes and serverside includes as well as asp includes. only one of these that all servers support are iframes.
__________________
<img src=\"http://img208.imageshack.us/img208/1562/signatureew3.gif\">
welsh is offline  
Old 10-19-2006, 10:34 PM   #6 (permalink)
 
True Techie

Join Date: Jun 2006

Posts: 120

ablaye

Default

There are thousands of CSS validators on the internet. Just do a google search. You can also try this one.
ablaye is offline  
 
Closed Thread

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On