Jump to content

[SOLVED] Background colour on frames leaves white lines


Cagecrawler

Recommended Posts

I have set up my website using frames for each of the different sections, but when I colour the background, it leaves white lines around each frame that I can't get rid of.
Below is what I mean:
[IMG]http://img.photobucket.com/albums/v326/cagecrawler/whitelines.jpg[/img]

Is it something that just happens with frames, or is there a way to get rid of them?
why not do this..
its what i use in my game..
for the header.php

[code]<?php

class headers {
function startheaders() {
global $ir;
global $c,$ir;
<<<EOF
<html>
<head>
<title>Site name</title>
<style>
body { font-family:helvetica, arial, geneva, sans-serif;font-size:12;color: #66ff00;
  scrollbar-base-color: #000000;
  scrollbar-arrow-color: #66ff00;
  scrollbar-DarkShadow-Color: #000000; }
a:visited,a:active,a:hover,a:link { color: #66ff66;text-decoration: none; }
table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 12; }
img { border:none; }
textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12;color: black; }
</style>
</head>
function menuarea()
{
include "mainmenu.php";
global $ir,$c;
print "</td><td valign='top'>
";
}
function endpage()
{
print "</td></tr></table></body>
</html>";
}
}
?>[/code]

and you need a mainmenu.php
[code]<?php
your menu
?>[/code]

<and then for the page part

[code]<?php
session_start();
require "header.php";
$h = new headers;
$h->startheaders();
global $c;

Your page here

EOF;
$h->endpage();
?>[/code]

much easyier to find a problem and manage
and lot less coding on bgcolors and stuff

header=site look
mainmenu= the menu
the page name= the page it self
The code:
[code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="default.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>FPL League</title>
</head>
<center>
<frameset rows="120,*">
<frame noresize scrolling="no" frameborder="0" name="title" src="title.php">
<frameset cols="150,*">
<frame noresize scrolling="no" name="menu" frameborder="0" src="menu.php">
<frameset rows="*,60">
<frame scrolling="no" frameborder="0" name="main" src="main.php">
<frame noresize scrolling="no" frameborder="0" name="copyright" src="copyright.php">
</frameset>
</frameset>
</frameset></center>
</html>
[/code]

I could do it with tables and php includes to insert the correct page, but it means reloading the whole page rather than just one frame.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.