IOAF Posted March 17, 2006 Share Posted March 17, 2006 Hi, im setting up a new site with an online store with php and msql. I have built the template into the php from [a href=\"http://www.phpwebcommerce.com/\" target=\"_blank\"]http://www.phpwebcommerce.com/[/a] and everything works fine. However im having problems with a frame border and im unsure how to remove it.With html or css i would usually use border="0" or {border:0;} but as the frame is made from the require_once function im unsure what to use here.Ive tried CSS on the main page and the page the require_once is targeted at to remove the border with no sucsess, and also the tables with the require_once php set to border="0"Here is my coding for the main page:[code]<?phprequire_once 'library/config.php';require_once 'library/category-functions.php';require_once 'library/product-functions.php';require_once 'library/cart-functions.php';$_SESSION['shop_return_url'] = $_SERVER['REQUEST_URI'];$catId = (isset($_GET['c']) && $_GET['c'] != '1') ? $_GET['c'] : 0;$pdId = (isset($_GET['p']) && $_GET['p'] != '') ? $_GET['p'] : 0;require_once 'include/header.php';?><style type="text/css">table {border: 0px;}frame{border: 0px;} </style><body bgcolor="f0f0f0" text="#CCCCCC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><center><table border="1" align="center" cellpadding="0" cellspacing="0" width="760" style="border:0px;"> <tr> <td colspan="5" border="0" width="760"> <?php require_once 'include/top.php'; ?> </td> </tr> </table> <table border="1" align="center" cellpadding="0" cellspacing="0" width="760" height="400"> <tr> <td colspan="5" border="0" width="13" background="../images/site_08.gif"></td> <td colspan="5" border="0" width="135" bgcolor="#FFFFFF" id="leftnav"> <?php require_once 'include/leftNav.php'; ?> </td> <td colspan="5" border="0" width="464" bgcolor="#FFFFFF"> <?phpif ($pdId) { require_once 'include/productDetail.php';} else if ($catId) { require_once 'include/productList.php';} else { require_once 'include/categoryList.php';}?> </td> <td colspan="5" border="0" width="113" bgcolor="#FFFFFF"> <?php require_once 'include/miniCart.php'; ?> </td> <td colspan="5" border="0" width="15" background="../images/site_11.gif"></td> </tr> </table> <table> <tr> <td colspan="5" background="../images/site_12.gif" width="760" height="39"> </td> </tr></table></center>[/code]Can anyone help point out where im going wrong here?Help is much apriciated :)Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/5135-require_once-frame-border-problem/ Share on other sites More sharing options...
keeB Posted March 17, 2006 Share Posted March 17, 2006 You're not making much sense bud..[code]<table border="1" align="center" cellpadding="0" cellspacing="0" width="760" style="border:0px;">[/code] ?? is that what you're talking about? Quote Link to comment https://forums.phpfreaks.com/topic/5135-require_once-frame-border-problem/#findComment-18250 Share on other sites More sharing options...
IOAF Posted March 17, 2006 Author Share Posted March 17, 2006 Ok, spotted the problem *insert embarasment here*sorry guys lol Quote Link to comment https://forums.phpfreaks.com/topic/5135-require_once-frame-border-problem/#findComment-18251 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.