Definitely Helpless!!
Posted: Thu, 2008-07-24 16:49
I've always wanted to learn how to use DIVS, and I don't have any problems understanding them when there's so many great premades out there.
[bBut I have a little problem... what do I do after I've added that index.htm page and style.css? [/b] I mean, I have my frontpage ready and set, you can take a look at goingdead.net/pirate/new/! But what do I do to add new pages? What code to I use? I haven't found any tutorials that explain this, only how to set up the frontpage. In PHP, you use this code:
<*?*php include('head*er.php');*?*>
CONTENT, HEADERS BLAAH .__.
<*?*php include('foot*er.php');*?*>
I tried pasting the same code I used in index.htm to a new page, goingdead.net/pirate/new/me.htm, and constumizing it. But if I do the same to all my pages, it's going to take days when I'm chaning my layout/css
Please help me, I'm desperate and I really hope you guys understand my problem



Guru
Posts: 2528
Joined: 2005-12-14
Location: Victoria British Columbia
helpless wrote:I've always
Posted: Thu, 2008-07-24 17:43
If you think that one uses DIVS all over the place to code html then you are completely misunderstanding how html works. The rest of your post suggests to me that you really need to go through a tutorial on the basics, such as the ones at Html Dog.
I could change my plea to guilty,
but I don't think it would stick.
Ed Seedhouse
newbie
Posts: 4
Joined: 2008-07-24
Well, uhm, I didn't quite
Posted: Thu, 2008-07-24 17:51
Well, uhm, I didn't quite get help with my problem!
I can always find some other template who's better, that's no problem. My problem is that that whatever kind of div template I use that isn't PHP, I can't make pages!!
Enthusiast
Posts: 267
Joined: 2008-07-18
Location: US
Assuming your index
Posted: Thu, 2008-07-24 18:37
Assuming your index is:
http://goingdead.net/pirate/new/index.htm
Then all pages thereafter carry the same markup. So make 4 copes of the index. Save them as:
http://goingdead.net/pirate/new/01.htm
http://goingdead.net/pirate/new/02.htm
http://goingdead.net/pirate/new/03.htm
http://goingdead.net/pirate/new/04.htm
Each of the four use the same CSS as the index.
newbie
Posts: 4
Joined: 2008-07-24
Won't it be a incredible job
Posted: Fri, 2008-07-25 14:49
Won't it be a incredible job when I change the layout, I mean if I use the code with the sidebar, header info etc. on every page? That means that if I change ONE link, I have to change all my pages or...?
Guru
Posts: 2528
Joined: 2005-12-14
Location: Victoria British Columbia
helpless wrote:Won't it be a
Posted: Fri, 2008-07-25 16:14
Well that's the way it's done if you want to avoid any server side languages. Some editors like Dreamweaver will let you control that in one go. But since you seem to have experience with PHP you just put your dynamic stuff in php programs and put something like
<?php include ("menu.php"); ?>in each html file, and configure your server to allow php inside an html file to be processed. Then to change your menu in all files you have only one include file to edit.
I could change my plea to guilty,
but I don't think it would stick.
Ed Seedhouse
Enthusiast
Posts: 267
Joined: 2008-07-18
Location: US
Such is life. CSS copes with
Posted: Fri, 2008-07-25 23:17
Such is life. CSS copes with the separation of style from content: no more; no less. Do you have a CSS question?
newbie
Posts: 4
Joined: 2008-07-24
Hmm, I guess there's a lot
Posted: Sat, 2008-07-26 06:49
Hmm, I guess there's a lot more in the CSS world than I thought... I still have a lot to learm

Thanks for the answers, they helped me understand my problem