>>  Site Map >>  Forums >>  Themes 7x

Forum module - topics in forum:



Themes 7x - Discussions regarding PHP-Nuke Themes. 7x



Removing Borders

I'd like to remove or modify the borders around the blocks on my site, how do i do it? And also on the forum, I change the file that looks like it should do the job (simple_header.tpl) but nothing happens.

Can anyone help?

(version 7.6 with latest patch)






What theme is it please?

or.... whats the URL?






The theme is DeepBlue

Also, how do I remove the gap above the header?






lol... ok gaps and borders...

all 'should be sorted in DeepBlue's theme folder under style.
style .css and deepblue theme.php

can we have a URL to your site please.... ?






http://www.scottishmini.co.uk

I've looked in those files all the borders seem to be set to 0 already Confused






Code: :
function themesidebox($title, $content) {
    echo "<table border=\"0\" align=\"center\" width=\"138\" cellpadding=\"0\" cellspacing=\"0\">"
   ."<tr><td background=\"themes/DeepBlue/images/table-title.gif\" width=\"138\" height=\"20\">"
   ."&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=\"#FFFFFF\"><b>$title</b></font>"
   ."</td></tr><tr><td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"100%\" height=\"3\"></td></tr></table>\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"138\">\n"
   ."<tr><td width=\"138\" bgcolor=\"#000000\">\n"
   ."<table border=\"0\" cellpadding=\"1\" cellspacing=\"1\" width=\"138\">\n"
   ."<tr><td width=\"138\" bgcolor=\"#ffffff\">\n"
   ."$content"
   ."</td></tr></table></td></tr></table><br>";


Removing the final <br> should make the gap smaller.

And modifying some of the above bgcolor variables and the ones at the top of the theme.php should allow you to change the border colour.

Code: :
$bgcolor1 = "#ffffff";
$bgcolor2 = "#9cbee6";
$bgcolor3 = "#d3e2ea";
$bgcolor4 = "#0E3259";







It took me ages to work this out for my site, but doing the following sorted out my border issues, although it was just the side borders for me.

Change the BODY tag in Header.html to the include the following...

Code: :
<body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0">


See if that sorts it out for you.

Mal.






Code: :
function themesidebox($title, $content) {
    echo "<table border=\"0\" align=\"center\" width=\"138\" cellpadding=\"0\" cellspacing=\"0\">"
   ."<tr><td background=\"themes/DeepBlue/images/table-title.gif\" width=\"138\" height=\"20\">"
   ."&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=\"#FFFFFF\"><b>$title</b></font>"
   ."</td></tr><tr><td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"100%\" height=\"3\"></td></tr></table>\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"138\">\n"
   ."<tr><td width=\"138\" bgcolor=\"#000000\">\n"           <----------
   ."<table border=\"0\" cellpadding=\"1\" cellspacing=\"1\" width=\"138\">\n"
   ."<tr><td width=\"138\" bgcolor=\"#ffffff\">\n"
   ."$content"
   ."</td></tr></table></td></tr></table><br>";


OK I worked it out, by changing the arrowed colour above to the background colour (in my case white) the borders disappear Smile

Still stuck on the gap above the header tho Confused






What gap MD?

Do you mean between the main site header and the top of the blocks?






No i mean above the header, the gap between the header and the edge of the browser window. There's a 35px high gap that I don't want






Well thats where the ad banners go if you use them.

Code: :
function themeheader() {
    global $banners, $sitename;
    echo "<body bgcolor=\"#0E3259\" text=\"#000000\" link=\"0000ff\">"
   ."<br>";
    if ($banners) {
   include("banners.php");
   echo "<br>";


Could try removing the <br> tags.






That did it! Thanks for your help Very Happy




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS