Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | HTML / CSS Assistance

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > Internet Discussion

HTML / CSS Assistance
Reply
 
Thread Tools
Old 29-10-2009, 01:17   #1
webcrawler2050
Inactive
 
Join Date: Feb 2008
Location: Swindon
Services: TiVo 110MB BB Phone Line
Posts: 3,087
webcrawler2050 has reached the bronze age
webcrawler2050 has reached the bronze agewebcrawler2050 has reached the bronze agewebcrawler2050 has reached the bronze agewebcrawler2050 has reached the bronze agewebcrawler2050 has reached the bronze agewebcrawler2050 has reached the bronze agewebcrawler2050 has reached the bronze age
Send a message via MSN to webcrawler2050
HTML / CSS Assistance

Evening,

I'm having some real issues with Joomla and it's templating system. Basically, I have a veyr large white gap under my footer (http://sheerclasscats.co.uk/index.php) and just cant find it - i've been looking at it for a few hours now, so a "second" set of eyes would go a miss.


The Template
Code:
<?php

if (!defined('e107_INIT')) { exit; }

// [multilanguage]

@include_once(e_THEME."Buzzness/languages/".e_LANGUAGE.".php");
@include_once(e_THEME."Buzzness/languages/English.php");

// [theme]
$themename = "Buzzness";
$themeversion = "1.0";
$themeauthor = "Design by:<a href='http://www.wearepc.co.uk'>MK5 Ltd</a>";
$themeemail = "http://www.wearepc.co.uk";
$themewebsite = "http://www.wearepc.co.uk";
$themedate = "10/09/2009";
$themeinfo = "";
define("STANDARDS_MODE", TRUE);
$xhtmlcompliant = false;
$csscompliant = false;
define("IMODE", "lite");
define("THEME_DISCLAIMER", "<br /><i>".LAN_THEME_1."</i>");

if(!defined("e_THEME")){ exit; }
$page=substr(strrchr($_SERVER['PHP_SELF'], "/"), 1);
define("e_PAGE", $page);

 

// [layout]

$layout = "_default";

$HEADER = "
<div id='wrapper'>
		<div id='header'>
			<h1><img src='".THEME."images/logo.jpg' width='556' height='130' alt='Maine coons Wiltshire'></h1>
		</div>
		<div id='headline'>
		<div id='photo'><div>
				<a href='/page.php?6'><img src='".THEME."images/top.jpg' width='250' height='116' alt='SheerClass'></a>
			</div>
			</div>
			<div id='search-news'>
				<h2>Search this site</h2>
				<form method='get' action='search.php'>
					<div><input type='text' name='q' value='' id='q' /></div>
					<div class='more'><input type='image' name='search' value='' src='".THEME."images/search.jpg'>
					<input type='hidden' name='r' value='0' /></div>
				</form>
				
				<h3 class='downcast'>MENU</h3>
				<div id='news-box'>
					<ul>
				  {SITELINKS}
				  </ul>
				</div>
			</div>
			<div class='clear'></div>
		</div>
		<div id='body'>
			<div id='body-left'>

";

$FOOTER = "
			</div>
			<div id='body-right'>
				{SETSTYLE=menu1}
				{MENU=1}
			</div>
			<div class='clear'></div>
		</div>
	</div>
	<div id='footer'>
<p><a href='page.php?7'>Maine Coon Cats</a> | <a href='page.php?6'>Maine Coon kittens for sale</a> | <a href='contact.php'>Maine Coons Wiltshire</a></p>
<p>Created by: <a href='http://www.wearepc.co.uk'>MK5 Limited</a> </p>
	</div>

";

$CUSTOMHEADER = "
<div id='wrapper'>
	<div id='header'>
<h1><img src='".THEME."images/logo.jpg' width='556' height='130' alt='Sheerclass'></h1>
		</div>
		<div id='headline'>
			<div id='photo'><div>
				<a href='/page.php?6'><img src='".THEME."images/top.jpg' width='250' height='116' alt='SheerClass'></a>
			</div></div>
			<div id='search-news'>
				<h2>Search this site</h2>
				<form method='get' action='search.php'>
					<div><input type='text' name='q' value='' id='q' /></div>
					<div class='more'><input type='image' name='search' value='' src='".THEME."images/search.jpg'>
					<input type='hidden' name='r' value='0' /></div>
				</form>
				
				<h3 class='downcast'>Menu</h3>
				<div id='news-box'>
					<ul>
				  {SITELINKS}
				  </ul>
				</div>
			</div>
			<div class='clear'></div>
		</div>
		<div id='body'>
			
";

$CUSTOMFOOTER = "

		</div>
	</div>
	<div id='footer'>
	<p><a href='page.php?7'>Maine Coon Cats</a> | <a href='page.php?6'>Maine Coon kittens for sale</a> | <a href='contact.php'>Maine Coons Wiltshire</a>
    <p>Created by: <a href='http://www.wearepc.co.uk'>MK5 Limited</a> </p>
	</div>

";

$CUSTOMPAGES = "comment.php upload.php pm.php?reply page.php forum.php forum_post.php forum_viewforum.php forum_viewtopic.php user.php submitnews.php download.php links.php stats.php usersettings.php signup.php";

$NEWSSTYLE = "
<h2><b>{NEWSTITLE}</b></h2>
<p class='smalltext'>{NEWSDATE=forum}</p>
<p>{NEWSBODY}<br />
{EXTENDED}</p>
<p align='left'>{NEWSCOMMENTS} | {NEWSCATEGORY}</p>
";

define("ICONSTYLE", "float: left; border:0");
define("COMMENTLINK", LAN_THEME_3);
define("COMMENTOFFSTRING", LAN_THEME_2);
define("PRE_EXTENDEDSTRING", "<br /><br />[ ");
define("EXTENDEDSTRING", LAN_THEME_4);
define("POST_EXTENDEDSTRING", " ]<br />");
define("TRACKBACKSTRING", LAN_THEME_5);
define("TRACKBACKBEFORESTRING", " | ");
define('ICONMAIL', 'email_16.png');
define('ICONPRINT', 'print_16.png');



// [linkstyle]

define('PRELINK', "");
define('POSTLINK', "");
define('LINKSTART', "<li><img src='".THEME."images/bullet2.gif'>&nbsp;&nbsp;");
define('LINKEND', "</li>");
define('LINKDISPLAY', 1);
define('LINKALIGN', "left");
define('LINKCLASS', "");

//	[tablestyle]
function tablestyle($caption, $text, $mode=""){
	global $style;
	if($style == "menu1"){
		echo "<div id='search-news'>
		<h3 class='downcast'>$caption</h3>
				<div id='news-box'>
				$text
				</div></div>";
}else if($style == "menu2"){
		echo "<h1>{$caption}&nbsp;&nbsp;</h1>
				</div>	
				<div class='post-footer'>{$text}
				</div>";
}else if($style == ""){
	echo "<h2><b>$caption</b></h2>
	<br />
	<p>$text</p>n";

	}
}


$COMMENTSTYLE = "
<div align='center'>
<table class='post-footer' style='width: 75%;'>
<tr>
<td style='width: 30%; vertical-align: top;'>
<p align='left'><span class='mediumtext'>{USERNAME}</span><br /><span class='smalltext'>{TIMEDATE}</span><br />{REPLY}<br /> {IPADDRESS}</td>
<td style='width: 70%; vertical-align: top;'>
<p align='left'><span class='mediumtext'>{COMMENT} {COMMENTEDIT}</span></td>
</tr>
</table>
</div><br />";


$CHATBOXSTYLE = "
<img src='".e_IMAGE."admin_images/chatbox_16.png' alt='' style='vertical-align: middle;' />
<b>{USERNAME}</b>
<div class='smalltext'>
{MESSAGE}
</div>
<br />";

?>
The Style Sheet

Code:
html, body, ul, li {
	margin: 0;
	padding: 0;
	list-style: none;
}
img {
	border: 0;
}
a {
	font-weight: bold;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
.more {
	text-align: right;
}
.left {
	float: left;
}
.clear {
	clear: both;
}

body, h1, h3, form {
	font: 14px tahoma, arial, sans-serif;
	margin: 0;
	padding: 0;
	color: #464545;
}

h2 {
	font: 16px tahoma, arial, sans-serif;
	margin: 0;
	padding: 0;
	color: #464545;
}


body {
	background: url(images/header_bg.jpg) repeat-x;
	text-align: center;
}
#wrapper {
	text-align: left;
	margin: auto;
	width: 774px;
}


#header {
	height: 130px;
	position: absolute;
}
#header h1 {
	margin-top: 0px;
}
#header h1 img {
	display: block;
}
#nav {
	margin-top: 14px;
}
#nav img {
	float: left;
}

#headline {
	padding-top: 145px;
}

#photo {
	float: left;
	width: 255px;
}
#photo div {
	border: 0px solid #FF66cc;
	padding: 1px;
}
#photo img {
	display: block;
}
#photo2 {
	float: right;
	width: 255px;
}
#photo div {
	border: 1px solid #FF66cc;
	padding: -5px;
}
#photo img {
	display: block
}

#search-news {
	float: right;
	width: 140px;
}
#search-news div {
	padding: 3px 0;
	margin: 0;
}
#search-news #q {
	width: 140px;
	border: 1px solid #2a2a2a;
}
#search-news .downcast {
	background: #FF66CC;
	border-top: 1px solid #000000;
	padding: 3px 4px 4px 4px;
	margin: 0px 0 0 0;
}
#search-news h3 {
	background: url(images/bullet_letter.gif) no-repeat;
	padding-left: 15px;
	font-weight: bold;
	margin: 1em 0 0.4em 0;
}
#search-news p {
	padding-left: 15px;
	padding-right: 2px;
	margin: 0.1em 0;
}
a {
	font-weight: bold;
	color: #464545;
}

#body {
	padding-top: -15em;
	text-align: justify;
}

#body-left {
	float: left;
	width: 408px;
}
#body-right {
	float: right;
	width: 281px;
}

#body-left ul.plussbullets {
	margin-top: 45px;
	margin-left: 120px;
	padding: 0;
	font-weight: bold;
}
#body-left ul.plussbullets li {
	background: top left url(images/bullet_plus.gif) no-repeat;
	margin: 0 0 10px 0;
	padding: 0 0 0 25px;
}

#body h2, #body p {
	margin: 0.3em 0;
}

#body-right p {
	margin-right: 2em;
}

#body a.green {
	color: #00d2ff;
	font-weight: bold;
	text-decoration: underline;
}

#footer {
	color: #fff;
        link: #fff;
	background: #FF66cc;
	padding: 0px 0 0px 0;
	margin-top: 1em;
	font-weight: bold;
        font-color: #fff;
}
#footer p {
	margin: 0;
	padding: 0;
}

/* core styles */

.indent{ 
	margin: 15px;
 	padding: 0 0 0 42px;  	
  	background: #FAFAFA url(images/quote.gif) no-repeat 5px 10px !important; 
	background-position: 8px 10px;
	border: 1px solid #f2f2f2; 
	border-left: 3px solid #EC981F;  
	font-size: 9px;
}

.smalltext {
	font: 10px verdana, tahoma, arial, helvetica, sans-serif;
	color:#000;
}

body > .smalltext {
	font: 9px verdana, tahoma, arial, helvetica, sans-serif;
	color:#fff;
}

.smallblacktext {
	font: normal 7pt verdana, tahoma, arial, helvetica, sans-serif;
	color:#000;
}

.defaulttext {
	font: 11px verdana, tahoma, arial, helvetica, sans-serif;
	color:#000;
}

.mediumtext {
	font: 11px verdana, tahoma, arial, helvetica, sans-serif;
	color:#000;
}

.captiontext {
	font: 14px verdana, tahoma, arial, helvetica, sans-serif;
	color:#000;
}

.button{
	font-size: 11px;
	margin: 1px 0 0 0;
	color: #494949;
	background: white;
	border-top: 1px solid #D4D2CF;
	border-left: 1px solid #D4D2CF;
	border-bottom: 1px solid #868686;
	border-right: 1px solid #868686;
}

.tbox{
	font-size: 11px;
	margin: 1px 0 0 0;
	color: #494949;
	background: white;
	border-top: 1px solid #868686;
	border-left: 1px solid #868686;
	border-bottom: 1px solid #D4D2CF;
	border-right: 1px solid #D4D2CF;
}

.tbox .chatbox{
	font-size: 11px;
	margin: 1px 0 0 0;
	color: #494949;
	background: white;
	border-top: 1px solid #868686;
	border-left: 1px solid #868686;
	border-bottom: 1px solid #D4D2CF;
	border-right: 1px solid #D4D2CF;
	width: 90%;
}

.chatbox{
	width:160px;
}

.helpbox {
	border: 0px;
	background-color: transparent;
	color:#000;
	font: 9px tahoma, verdana, arial, helvetica, sans-serif;
}

.nextprev{

	color: #000;
	font: normal 9px verdana, tahoma, arial, helvetica, sans-serif;
	text-align:center;
	padding : 2px;

}

.np{

	color: #000;
	font: 9px verdana, tahoma, arial, helvetica, sans-serif;
	text-align:center;
	padding : 2px;
}

.spacer{
	padding: 2px 0px 2px 0px;
}

.border {
	border: #000 1px solid;
}

.bodytable {
	padding: 0px;
	font: 10px verdana, tahoma, arial, helvetica, sans-serif;
	color: #000;
}
table {
	margin-left: auto;
	margin-right: auto;
}
webcrawler2050 is offline   Reply With Quote
Advertisement
Old 29-10-2009, 01:58   #2
Strzelecki
Inactive
 
Join Date: Jan 2004
Location: Essex
Age: 43
Services: 80/20Mbps FTTC on Freeola
Posts: 871
Strzelecki has reached the bronze age
Strzelecki has reached the bronze ageStrzelecki has reached the bronze ageStrzelecki has reached the bronze ageStrzelecki has reached the bronze ageStrzelecki has reached the bronze ageStrzelecki has reached the bronze ageStrzelecki has reached the bronze ageStrzelecki has reached the bronze ageStrzelecki has reached the bronze ageStrzelecki has reached the bronze ageStrzelecki has reached the bronze age
Re: HTML / CSS Assistance

You need to do something like:
Code:
html, body {
  height:100%;
}
/*  Add this to #wrapper */
#wrapper {
  height:100%;
  min-height:100%;
}
/* fix for IE */
html>body #wrapper {
  height:auto;
  min-height:auto
}
*/ then modify the footer*/
#footer {
  position:absolute;
  width:100%;
  bottom:0;
}
This will get the footer to 'stick' to the bottom of the viewpoint or browser window depending on the page content.
You can't 'find' what you're looking for as the whitespace isn't caused by an element, it just where the bottom of the document (body) ends. It the common 100% height problem.
Strzelecki is offline   Reply With Quote
Old 29-10-2009, 12:51   #3
v0id
[CENSORED]
 
v0id's Avatar
 
Join Date: Apr 2005
Location: Wolverhampton
Age: 47
Posts: 4,218
v0id has a bronzed appealv0id has a bronzed appeal
v0id has a bronzed appealv0id has a bronzed appealv0id has a bronzed appealv0id has a bronzed appealv0id has a bronzed appealv0id has a bronzed appealv0id has a bronzed appealv0id has a bronzed appealv0id has a bronzed appealv0id has a bronzed appealv0id has a bronzed appealv0id has a bronzed appealv0id has a bronzed appealv0id has a bronzed appeal
Re: HTML / CSS Assistance

http://www.cssstickyfooter.com/
__________________
Help save the world from loosers

v0id is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 20:25.


Server: osmium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum