1
grega1
Trying to get rid of one pixel of white space between columns
  • 2007/10/29 18:41

  • grega1

  • Just popping in

  • Posts: 15

  • Since: 2005/1/6 1


I am trying to get rid of the one pixel of white space between the columns on my home page. It runs from the top to bottom of the page. I believe it is space.gif, but I don't know where to delete the code for it from. I am running Theme Change to push a custom home page that uses a different theme than the rest of the site. I tried system.html in the themes directory for the homepage with no effect.

You can see what I am talking about on my homepage at www.marketagenda.com

Any help would be appreciated.

Thanks

2
Will_H
Re: Trying to get rid of one pixel of white space between columns
  • 2007/10/29 19:13

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


You have at least two <body> sections.

Try to implement only 1.

If you post your theme.html we would be happy to help you.

3
grega1
Re: Trying to get rid of one pixel of white space between columns
  • 2007/10/30 1:13

  • grega1

  • Just popping in

  • Posts: 15

  • Since: 2005/1/6 1


Thanks Will,

here's the code from the theme dir being used for the homepage:

<{php}>
$GLOBALS['xoopsTpl']->assign( 'xoops_ugroup', $GLOBALS['xoopsUser']->_groups[0] );
<{/php}>
<!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" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>">
<head>
<meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" />
<meta http-equiv="content-language" content="<{$xoops_langcode}>" />
<meta name="robots" content="<{$xoops_meta_robots}>" />
<meta name="keywords" content="<{$xoops_meta_keywords}>" />
<meta name="description" content="<{$xoops_meta_description}>" />
<meta name="rating" content="<{$xoops_meta_rating}>" />
<meta name="author" content="<{$xoops_meta_author}>" />
<meta name="copyright" content="<{$xoops_meta_copyright}>" />
<meta name="generator" content="XOOPS" />
<title><{$xoops_sitename}> - <{$xoops_pagetitle}></title>
<{$calendarjs}>
<link href="<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" />
<link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_url}>/xoops.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_imageurl}>styles.css" />
<!-- RMV: added module header -->
<{$xoops_module_header}>
<script type="text/javascript">
<!--
<{$xoops_js}>
//-->
</script>
</head>
<body>
<div align='center'>
<div class='wrapper'>
<{if $xoops_isuser == 1}>

<{include file="market/modules.html"}>

<{else}>
<div style='width: 1024px; height: 623px;'>
<{include file="market/system.html"}>
</div>
<{/if}>
</div>
</div>
<script type="text/javascript" language="javascript">
</script>
<script type="text/javascript" src="http://www.marketagenda.com/stats/php ... "></script>
<noscript><img src="http://www.marketagenda.com/stats/php-stats.php" border="0" alt=""></noscript>
</body>
</html>



Thanks.

4
Bassman
Re: Trying to get rid of one pixel of white space between columns
  • 2007/10/30 1:34

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


Eh? Are you bethanyw? That's the same site from the other thread, but different user.

5
grega1
Re: Trying to get rid of one pixel of white space between columns
  • 2007/10/30 1:51

  • grega1

  • Just popping in

  • Posts: 15

  • Since: 2005/1/6 1


no, I'm not bethanyw (she's a lot smarter than me). We are both working on the same project and trying to figure this out together.

I didn't know that she already posted a thread...

Greg

6
Bassman
Re: Trying to get rid of one pixel of white space between columns
  • 2007/10/30 2:01

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


Ah, OK. It seems that the CSS for the #centerCcolumn may be causing the problem.. try adjusting the padding.

7
grega1
Re: Trying to get rid of one pixel of white space between columns
  • 2007/10/30 6:33

  • grega1

  • Just popping in

  • Posts: 15

  • Since: 2005/1/6 1


I figured out the white line mystery. In the templates_c folder, there is a file homepage^theme.html. It was pointing to market/system.html instead of homepage/system.html. As a result it was using the market theme's module spacing. Here's the corrected code.

<body>
<?php if ($this->_tpl_vars['xoops_isuser'] == 1): ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include("market/modules.html", array());
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>

<?php else: ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include("homepage/system.html", array());
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<?php endif; ?>

Hope this helps others.

Greg

Login

Username:
Password:

Lost Password? Register now!

Who's Online

66 user(s) are online (34 user(s) are browsing Support Forums)


Members: 0


Guests: 66


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jan 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits