Using 2 HTML Files In One Page
Whether you're a seasoned veteran or a struggling beginner, Web Radiance is the web development and web design forum for you. You'll find answers to all your HTML, CSS, SEO, and Programming needs. Pull up a chair and stay awhile.
Using 2 HTML Files In One Page
#22
Posted 10 February 2007 - 10:28 AM
#23
Posted 10 February 2007 - 10:36 AM
#24
Posted 10 February 2007 - 10:50 AM
i tried it with the .htaccess and it worked. then i removed that file to try again and it worked. so probably it worked from the beginning but i might have done something wrong.
This post has been edited by ultra99: 23 February 2007 - 02:31 AM
#25
Posted 10 February 2007 - 11:02 AM
#26
Posted 10 February 2007 - 11:22 AM
#27
Posted 10 February 2007 - 12:46 PM
<link href="style.css" rel="stylesheet" type="text/css">
This code needs to be in the head
so you going to include the file, with this code in..if you follow
#28
Posted 10 February 2007 - 02:03 PM
#30
Posted 11 February 2007 - 12:09 PM
1. I code up one page looking how I want the whole site to look (the index page).
2. I figure out where the content is in the code, the stuff that will change between each page.
3. I take everything above that and put it into a file called "top.inc", replacing that code in the index page with an include call to the file "top.inc" (whether that be a PHP include, an ASP include, or an SHTML include, whatever)
4. I take everything below that and put it into a file called "bottom.inc", again, replacing that code in the index page with an include call to the file "bottom.inc", just as before
5. I then just duplicate the index page for as many pages as I need, changing the content.
6. Any changes I need to make to anything that's above the content, I can change on one page, "top.inc". This file normally contains the DOCTYPE, the <head>, the link to the CSS file, all the information, and the top part of the <body>. Any changes made to top.inc will reflect in every other page.
7. Any changes I need to make to anything that's below the content, I can change on one page, "bottom.inc". This file normally contains the closing </body> and </html> tags etc, everything after the content. Again, any changes made to bottom.inc will reflect in every other page.
8. If you like, top.inc and bottom.inc could be split into further includes, like menu.inc or things like that. That's it, that's how its done.
Does that make sense?
#31
Posted 15 February 2007 - 12:01 PM
I always think that I should copy and paste every time and forget about SSI, too much hassle. But yet I always say no, I have to get into the habit of doing SSI because it's something good to learn and good for the future..........correct?
This post has been edited by ultra99: 15 February 2007 - 12:51 PM
#32
Posted 15 February 2007 - 12:49 PM


Help
This topic is locked
MultiQuote












