|
please help me im desperate
02-17-2006, 06:42 PM
|
please help me im desperate
|
Posts: 26
Location: Miami, FL
|
Hey everyone, I need some help on framing html, but without the use of frames. I believe its done with CSS or PHP, please let me know, thansk!
(Im also looking for a graphic/image designer to create images for my website thanks! Its a very urban, hip-hop, site so I need someone who can relate hopefully, also would help to know webdesign, PM methanks!)
Last edited by Cmoazz; 02-18-2006 at 01:23 PM..
|
|
|
|
02-17-2006, 08:18 PM
|
Re: please help me im desperate
|
Posts: 26
Location: Miami, FL
|
Was I misunderstood in the post? Im sure it sounds normal... or maybe no one knows. Let me know, thanks!
|
|
|
|
02-17-2006, 08:32 PM
|
Re: please help me im desperate
|
Posts: 1,605
|
Just to be honest, you sounded like an angry someone who would bark at anyone that tried to help you.
Post a link and ask some specif questions. If I can I will try to help. I am far from any expert at anything but there are a lot of sharp people who hang out here.
|
|
|
|
02-17-2006, 08:40 PM
|
Re: please help me im desperate
|
Posts: 26
Location: Miami, FL
|
Oh sorry about that, umm, let me try and explain as full as I can, since im not sure what to call this.
I have a website that each part of the page is in tables. I need each section "framed" (different html in each table). I dont want to actually use frames though, I believe the code needed is in CSS which I know nothing about.
I will try and make a quick template of how I will need it, and maybe its more clear, thanks!
|
|
|
|
02-17-2006, 09:06 PM
|
Re: please help me im desperate
|
Posts: 26
Location: Miami, FL
|
Ok I added names of the .html files and sizes in pixels incase it matters, this is what I need the page to come together as, but without frames.
www.305kicks.com/template.bmp
|
|
|
|
02-17-2006, 10:36 PM
|
Re: please help me im desperate
|
Posts: 1,605
|
At this point in time I am not experienced enough to help you. What you are looking for is help with CSS. Each section of the table is defined in the CSS file.
Post in the CSS forum here.
Once the values are assigned in the css file text will appear the way you want it to look. If you can't find help here some of the freelance sites might be able to help you. A dollar buys a lot of services when the programer is located in the third world.
Best wishes,
Colbyt
|
|
|
|
02-18-2006, 03:13 AM
|
Re: please help me im desperate
|
Posts: 26
Location: Miami, FL
|
Yes, this is the CSS section. I also posted the same thing in the HTML section just incase. Hopefully someone knows how this can be made possible, it will be great help
|
|
|
|
02-18-2006, 03:28 AM
|
Re: please help me im desperate
|
Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
|
Cmoaazz, just to let you know I stayed away from this post earlier as well since you did sound angry in your first post. Anyway since that's all cleared up.
If you want to really want to use different html files for each of those separate areas then you do need to use frames. However if the reason you want to use those html files is so you don't need to repeat the code on every page to simplify future changes you can use a scripting language.
I'm a php coder so the way I do it is using the include function like:
<?php include "header.inc" ?>
The .inc extension is the way I usually call my includes, but the files could also be .php or .txt among others. The pages where you use the php include will need to have the .php extension.
You can equally use another scripting language such as asp or asp.net though since I don't code in those languages I couldn't tell you the actual code.
If you're not going to use a scripting language then you will need to use frames to enable keeping all those files as separate html files.
Is that what you were asking? Css isn't about including other files into your page. It's for styling and positioning page elements on the page. You can certainly set up a page to look like you desribed using css (or tables), but all the html will need to be on that page unless you use a scripting language.
|
|
|
|
02-18-2006, 01:22 PM
|
Re: please help me im desperate
|
Posts: 26
Location: Miami, FL
|
Sorry, I guess I should read my posts before posting, didnt mean to sound mean at all.
Anyhow, yes thats why I need the "framing" so I dont need to change 40 pages to get for example, the "menu" all the same.
Could you please send or post the main page, the "index" page with the php already done? I learn best from viewing what you did. The index would be the one with the php in it right? The other pages are just the pages within that? Hope im right.
Let me know, thanks!
|
|
|
|
02-18-2006, 01:59 PM
|
Re: please help me im desperate
|
Posts: 26
Location: Miami, FL
|
Hey this might be able to help the pros understand what I mean, these sites use the "framing" without frames that I need, I see some javascript and webbot or something in the coding, I dont know that, check it the source.
www.streetdownloads.com
www.mixtapemurder.com
|
|
|
|
02-18-2006, 02:31 PM
|
Re: please help me im desperate
|
Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
|
Hey that's ok. No harm done. The links to the sites you sent look like ordinary .html. I didn't see any kind of php or asp involved. They're just basic table layouts.
Here's some basic code that might work to structure your index page.
HTML Code:
<html>
<head>
<title>Table Layout</title>
<body>
<table>
<tr>
<td colspan="4"><?php include "header.inc"; ?></td>
<td rowspan="4"><?php include "rightside.inc"; ?></td>
</tr>
<tr>
<td colspan="2"><?php include "midleft.inc"; ?></td>
<td colspan="2"><?php include "midright.inc"; ?></td>
</tr>
<tr>
<td colspan="4"><?php include "menu.inc"; ?></td>
</tr>
<tr>
<td><?php include "leftside.inc"; ?></td>
<td colspan="3"><?php include "main.inc"; ?></td>
</tr>
</table>
</body>
</html>
Yes it would need to be a php page and you'll need to make sure php is installed on your server in order for it to work.
I didn't style this code in any way. It's just a generic table so you'll probably need to add some things to get it to display the way you want. Hopefully it will help you get started.
You'll notice I'm calling all those html files as filename.inc which like I said is the way I typically create my include files. Some people prefer to wrap php around the files and then use the .php extension. The way I've set the php code up also assumes your included files would be residing in the same folder as your index page. Usually you would put these files in a separate folder or folders, maybe a folder with the name 'includes'
If you do put your included files in their own subfolder you would need to change the path in the php include statement so that it might look like:
<?php include "includes/menu.inc"; ?>
The code above isn't going to be a complete page for you. You'll still have work to do to get the page to display the way you want, but I hope this basic structure will help you at least get started. There are certainly other ways to set up this page as well. I normally wouldn't use tables, but rather css to layout the page. The table was simply an easier and quicker way to set it up.
|
|
|
|
02-19-2006, 03:29 AM
|
Re: please help me im desperate
|
Posts: 26
Location: Miami, FL
|
I dont know any php though, can I make my html page and save it as .inc? will that work? thanks
|
|
|
|
02-19-2006, 04:41 AM
|
Re: please help me im desperate
|
Posts: 26
Location: Miami, FL
|
What do I save the page with all the tables on (index) as, .php?
Also, what do I save the pages that are being linked (header, midleft, etc) as?
|
|
|
|
02-19-2006, 11:36 AM
|
Re: please help me im desperate
|
Posts: 1,605
|
I just wrote a long message and lost it because I had timed out.
I'll do the short version this time.
Is this similiar to what you want to do?
http://www.lexkyweb.com/samples/sample3.html
Copy the source code and play with it.
I will write more later.
Colbyt
|
|
|
|
02-19-2006, 02:01 PM
|
Re: please help me im desperate
|
Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
|
Yes the index page will need to be index.php. Again I'm assuming php is set up on your server. If not you'll need to have that set up for any of this to work.
The html pages you want to include like menu.html can be .inc. Just save the file as menu.inc. There are other extensions you can use, but .inc will work fine.
You want to take out some (not all) of the html tags in the menu.html file (and the other html files you're including) Bascially you'll only need to keep what's inside of the <body> tags and remove everything else including the <body> tags themselves. Otherwise you'll end up with multiple <head> and <body> tags on the index page.
What will be happening with you're page is when a browser makes a request for your index.php page your server will first send the page to a php engine which will process your php code. In this case it will grab the files you want to include and add what's in them to the table cells where you said to include them.
Once the php engine has parsed the php code it will send the page to the browser as straight html. If you view the source of the resulting page you won't see any php in there.
If you've never used php before you may want to read up a little on it before setting all this up. w3schools offers some very simple tutorials that are good for beginners and the php.net site should also have plenty of information about getting started with php.
|
|
|
|
02-19-2006, 02:12 PM
|
Re: please help me im desperate
|
Posts: 26
Location: Miami, FL
|
Umm, yes cob thats what I need, just not that same layout, but I would like each section to have its own html, as if it were framed, but without the use of frames.
Also, I saved the index as index.php, but it wont let me view it in a internet browser, it keeps opening dreamweaver(which I dont know how to use I just have it - all web design is made from notepad)
When I save my html pages like header, menu, etc, as menu.inc, they are just a word file.... and they dont show up on index, am I doing something wrong?
Last edited by Cmoazz; 02-19-2006 at 02:14 PM..
|
|
|
|
02-19-2006, 02:20 PM
|
Re: please help me im desperate
|
Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
|
Do you have php installed on your computer? You need to have it set up before you'll be able to view php pages. If you don't feel comfortable installing it you may want to just upload all your files and test the page on a live server.
php isn't something that comes pre-installed with a browser and you may want to read a little about it before building your current index page. Try the w3schools tutorial. It's a pretty quick read and will probably help a lot in understanding how everything is working.
|
|
|
|
02-19-2006, 04:56 PM
|
Re: please help me im desperate
|
Posts: 1,605
|
Quote:
|
Originally Posted by Cmoazz
Umm, yes cob thats what I need, just not that same layout, but I would like each section to have its own html, as if it were framed, but without the use of frames.
Also, I saved the index as index.php, but it wont let me view it in a internet browser, it keeps opening dreamweaver(which I dont know how to use I just have it - all web design is made from notepad)
When I save my html pages like header, menu, etc, as menu.inc, they are just a word file.... and they dont show up on index, am I doing something wrong?
|
Let's take it from the top. The link I sent you to was not a frame page. It was a page with tables on it it. Nothing but tables with a different back-ground color in each cell. I choose to display that table with no borders. Content can be added to those cells on that page on via the include statement. Perhaps you are confusing frames and tables. I know I did when I first started.
You can't view php files on your local computer unless your have personal web server and PHP installed. You have to upload them to your server for testing and viewing. That is the reason I suggested using html files until you had your page design the way you want it. You may never be able to view the entire page with all the included pages on your local machine.
INC. files will be incomplete html pages as Vangogh stated. Again they won't work on a local computer unless....(see above). Save them as html until they look the way you want them to look, then strip out the garbage and rename.
I have never used dreamweaver but I am sure that it will create the basic table page layout for for you. Counting a footer section which I did not see on your bmp you have a 5 row, 3 column table and then some cells are merged to create the look you want.
I suggest that you create the basic page and get the table set the way you want it and then work on creating the 7 pages, 8 with a footer section that you want to provide the content. Here are 3 more links to show you what I mean.
http://www.lexkyweb.com a finished page with others included.
http://www.lexkyweb.com/header.html header portion only
http://www.lexkyweb.com/footer.html footer portion only
I do not have it fully and correctly implemented so the main portion of the site is all on one page with the header and footer added.
Colbyt
Last edited by colbyt; 02-19-2006 at 04:58 PM..
|
|
|
|
02-19-2006, 05:03 PM
|
Re: please help me im desperate
|
Posts: 26
Location: Miami, FL
|
Yes cob, I know what tables and frames are, and yes, just like that site you showed me, how the header.html is its own page, but can be "framed" to the main one, without the use of frames. Did you also use the php method to do this?
|
|
|
|
02-19-2006, 05:09 PM
|
Re: please help me im desperate
|
Posts: 26
Location: Miami, FL
|
I THINK I DID IT! wooot, maybe... let me keep messing with it.
www.305kicks.com/testing
|
|
|
|
|
« Reply to please help me im desperate
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|