|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#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 |
|
|
|
|
|
#2 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
In the first frameset, remove the border by:
<FRAMESET cols="100, *" border="0"> |
|
|
|
|
|
#3 |
|
Member (9 bit)
Join Date: Jan 2002
Location: UK
Posts: 389
|
That worked great, many thanks
|
|
|
|
|
|
#4 |
|
Staff
Premium Member
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.
|
|
|
|
|
|
#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 |
|
|
|
|
|
#6 |
|
Staff
Premium Member
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:
|
|
|
|
|
|
#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 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|