Go Back   PCMech Forums > Help & Discussion > Internet, Web Applications, & The Cloud

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 12-13-2002, 05:01 AM   #1
Member (9 bit)
 
Join Date: Jan 2002
Location: UK
Posts: 389
HTML - (My frames have a small gap)

Hey there everyone,

I have put together something, just start bout 15 minutes ago and wrote the html to have three frames,
one on the left as a menu,
one on the top as a heading for logo etc..
and the other for the main site data

so far it looks like;

http://www26.brinkster.com/jimstestpage

As u can see there is a small gap at the top between the two frames,

anyone know how i can get rid of this gap?


Thanks all,
James
Battery Powered is offline   Reply With Quote
Old 12-13-2002, 05:49 AM   #2
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
In the first frameset, remove the border by:
<FRAMESET cols="100, *" border="0">
mairving is offline   Reply With Quote
Old 12-13-2002, 06:06 AM   #3
Member (9 bit)
 
Join Date: Jan 2002
Location: UK
Posts: 389
That worked great, many thanks
Battery Powered is offline   Reply With Quote
Old 12-13-2002, 06:40 AM   #4
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Of course, the other question is why are you using frames. They are somewhat outdated. There are only a handful of valid reasons to use them nowadays, like Cloaking and hiding code. If it is so that you want have to create the same code over and over for you navs, then you are much better off using PHP includes or maybe SSI.
mairving is offline   Reply With Quote
Old 12-13-2002, 09:02 AM   #5
Member (9 bit)
 
Join Date: Jan 2002
Location: UK
Posts: 389
I dont know php so cant use that

The main reason is im re-deisging a site for someone, there current site is all html so i planned to have a menu on the left done in flash and then all there current pages will load into the main frame - so the whole site doesnt have to be re-scripted

i know frames are old, and most look down on them, but its just easier for what im doing,
i could do it in tables, its just frames were the first thing that came to my head so its what i did
Battery Powered is offline   Reply With Quote
Old 12-13-2002, 10:21 AM   #6
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
PHP would be simple without even knowing much about it. You could make the header and save it as header.inc, then save the left nav menu as nav.inc. Your individual pages would be called page.php. The code on page.php would look like this:

PHP Code:
<?php 
include("header.inc");
include(
"nav.inc");
?>
HTML for page
It makes it a whole bunch easier to change. It is even easier if you hook it up to a DB.
mairving is offline   Reply With Quote
Old 12-13-2002, 12:56 PM   #7
Member (9 bit)
 
Join Date: Jan 2002
Location: UK
Posts: 389
That does sound like a good idea but im not sure if the person hosting the site uses a server that is php enabled, but i can check

and as i said im completly new to php so i have a question about the little bit of code u typed out,
would that actually align the side menu to the left or would more code have to be added to do that?

Thanks,
James
Battery Powered is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:08 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2