The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Big Question
nWo Sting
post Nov 5 2006, 01:40 PM
Post #1


Member
***

Group: Members
Posts: 63
Joined: 5-November 06
Member No.: 709



I dont know what they call it, but what code do I use to where I can change the header, and left side of every single page of my site? That way if I redesign the site, or add more links on the left side I wont have to change the HTML in every single page, just the main one and it will be on top of all the other pages. I dont want to use frames, someone told me it is just an HTML code where basically that page sits on top of the others, but the page is only going to be the header and lieft sidebar. Can anyone please help? thanks
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Nov 5 2006, 02:03 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,733
Joined: 9-August 06
Member No.: 6



SSI?
http://www.htmlhelp.com/faq/html/design.html#include-file
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
nWo Sting
post Nov 5 2006, 02:15 PM
Post #3


Member
***

Group: Members
Posts: 63
Joined: 5-November 06
Member No.: 709



QUOTE(pandy @ Nov 5 2006, 01:03 PM) *


thanks, I will try that, but it may not be SSI. I thought it would be an easy code. It may be IFrame, but I dont want to use frames because not every browser supports them. I basically want to do what this guy does http://www.woodus.com/den/home.php

If you click on different links you will see that his side bars and header stay the same. I want to do something like that, just incase I redesign my site, or add new links to the left side.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Peter1968
post Nov 5 2006, 02:18 PM
Post #4


Serious Coder
*****

Group: Members
Posts: 448
Joined: 23-September 06
Member No.: 213



He uses tables for layout, a practice that is frowned on nowadays.

http://www.glish.com/css/9.asp The same thing without tables although aligned to the right. A very slight modification of the CSS would allow you to float the menu to the left.

Google for CSS layouts and you'll find many examples that blow away the table-based layout that page you've given has.

This post has been edited by Peter1968: Nov 5 2006, 02:19 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Nov 5 2006, 02:23 PM
Post #5


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,733
Joined: 9-August 06
Member No.: 6



You don't have to use SSI. The same thing can be done with for example PHP. I wouldn't use frames or iframe for something as important as navigation.

There is no way to know how the site you link to does it. If a server side technique is used it is transparent to the browser. When you view source you see only normal HTML. If your main concern is the look, not the work involved, you can very well do it with just HTML. Use one page as a template for the others. As long as the pages are layed out the same they will look the same.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Nov 5 2006, 02:30 PM
Post #6


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,733
Joined: 9-August 06
Member No.: 6



To make it clearer, on http://www.woodus.com/den/ the header and menu don't really STAY as they would with frames. They are just the same on each page. Images are cached, the pages load fast and it may look like at least the header stays when you load another page, but it doesn't. It's drawn again with the page. He could use PHP, SSI or plain vanilla HTML. It all looks the same in the end.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
nWo Sting
post Nov 5 2006, 07:28 PM
Post #7


Member
***

Group: Members
Posts: 63
Joined: 5-November 06
Member No.: 709



thanks guys, CSS looks like it. I will see if I can find a good code to use for what I wanted to do.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Nov 5 2006, 07:35 PM
Post #8


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,733
Joined: 9-August 06
Member No.: 6



No. Peter1968 thinks you should use CSS instead of tables for the layout. CSS just add style to the existing HTML. It can't solve your problem with the header and menu on every page. SSI or PHP could. smile.gif

There's nothing to it. If you have either available to you on the server you can learn how to do it in a blink.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th April 2024 - 04:01 PM