Cagecrawler Posted December 16, 2006 Share Posted December 16, 2006 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? Quote Link to comment https://forums.phpfreaks.com/topic/30824-solved-background-colour-on-frames-leaves-white-lines/ Share on other sites More sharing options...
fenway Posted December 16, 2006 Share Posted December 16, 2006 Sounds like a frame border and a background color = white. Quote Link to comment https://forums.phpfreaks.com/topic/30824-solved-background-colour-on-frames-leaves-white-lines/#findComment-142171 Share on other sites More sharing options...
Cagecrawler Posted December 16, 2006 Author Share Posted December 16, 2006 I have frameborder="0" in all of my frame tags, and I've used a css file to set bgcolor (background-color in css) to my dark blue. Quote Link to comment https://forums.phpfreaks.com/topic/30824-solved-background-colour-on-frames-leaves-white-lines/#findComment-142178 Share on other sites More sharing options...
fenway Posted December 16, 2006 Share Posted December 16, 2006 Margins, then? Post the code. Quote Link to comment https://forums.phpfreaks.com/topic/30824-solved-background-colour-on-frames-leaves-white-lines/#findComment-142240 Share on other sites More sharing options...
DeathStar Posted December 16, 2006 Share Posted December 16, 2006 why not do this..its what i use in my game.. for the header.php[code]<?phpclass 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]<?phpsession_start();require "header.php";$h = new headers;$h->startheaders();global $c;Your page hereEOF;$h->endpage();?>[/code]much easyier to find a problem and manageand lot less coding on bgcolors and stuffheader=site lookmainmenu= the menuthe page name= the page it self Quote Link to comment https://forums.phpfreaks.com/topic/30824-solved-background-colour-on-frames-leaves-white-lines/#findComment-142539 Share on other sites More sharing options...
Cagecrawler Posted December 19, 2006 Author Share Posted December 19, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/30824-solved-background-colour-on-frames-leaves-white-lines/#findComment-144557 Share on other sites More sharing options...
Cagecrawler Posted December 19, 2006 Author Share Posted December 19, 2006 I've managed to fix it - I don't know what was wrong but I re-wrote the code and it works fine now. Quote Link to comment https://forums.phpfreaks.com/topic/30824-solved-background-colour-on-frames-leaves-white-lines/#findComment-144765 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.