Hi all,
For a recent medical journal from uk [bjmp.org], I have created a subtheme based on Acquia Marina and everything is working ok except the lower end of "content" border appears broken. I want the main content window to also have a border like the sidebar blocks and have added the relevant code of blocks into the page.tpl.php
Not sure how to proceed further.
The only files that have been changed in subtheme folder is
1) page.tpl.php
2) style.css
Only thing thats changed from the original is the display of site "content" in a block like display. In Style.css, i have added a padding to "content" div of 15px and I am enclosing the page.tpl.php for any valuable advice. What I have done leaves out the content-top and content-bottom out of the borders.
please see http://bjmp.kotwal.info
As you can see, the sides on the lower part of block is broken. Any advice would be suggested. I have come here, following advice here
<?php
// $Id: page.tpl.php,v 1.1.2.5 2009/03/18 00:58:37 jwolf Exp $
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language; ?>" xml:lang="<?php print $language->language; ?>">
<head>
<title><?php print $head_title; ?></title>
<?php print $head; ?>
<?php print $styles; ?>
<!--[if IE 7]>
<link rel="stylesheet" href="<?php print $base_path . $directory; ?>/ie7-fixes.css" type="text/css">
<![endif]-->
<!--[if lte IE 6]>
<link rel="stylesheet" href="<?php print $base_path . $directory; ?>/ie6-fixes.css" type="text/css">
<![endif]-->
<?php print $scripts; ?>
</head>
<body class="<?php print $body_classes; ?>">
<div id="page" class="clearfix">
<div id="header">
<div id="header-wrapper" class="clearfix">
<?php if ($search_box): ?>
<div id="search-box">
<?php print $search_box; ?>
</div><!-- /search-box -->
<?php endif; ?>
<div id="header-first">
<?php if ($logo): ?>
<div id="logo">
<a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><img src="<?php print $logo ?>" alt="<?php print t('Home') ?>" /></a>
</div>
<?php endif; ?>
<?php if ($site_name): ?>
<h1><a href="<?php print $base_path ?>" title="<?php print t('Home'); ?>"><?php print $site_name; ?></a></h1>
<?php endif; ?>
<?php if ($site_slogan): ?>
<span id="slogan"><?php print $site_slogan; ?></span>
<?php endif; ?>
</div><!-- /header-first -->
<div id="header-middle">
<?php if ($header_middle): ?>
<?php print $header_middle; ?>
<?php endif; ?>
</div><!-- /header-middle -->
<div id="header-last">
<?php if ($header_last): ?>
<?php print $header_last; ?>
<?php endif; ?>
</div><!-- /header-last -->
</div><!-- /header-wrapper -->
<div id="header-bottom" class="clearfix">
<?php if ($primary_links): ?>
<div id="primary-menu">
<?php print $primary_links_tree; ?>
</div><!-- /primary_menu -->
<?php endif; ?>
</div><!-- /header-bottom -->
</div><!-- /header -->
<div id="preface">
<?php if ($preface_first || $preface_middle || $preface_last || $mission): ?>
<div id="preface-wrapper" class="<?php print $prefaces; ?> clearfix">
<?php if ($mission): ?>
<div id="mission">
<?php print $mission; ?>
</div>
<?php endif; ?>
<?php if ($preface_first): ?>
<div id="preface-first" class="column">
<?php print $preface_first; ?>
</div><!-- /preface-first -->
<?php endif; ?>
<?php if ($preface_middle): ?>
<div id="preface-middle" class="column">
<?php print $preface_middle; ?>
</div><!-- /preface-middle -->
<?php endif; ?>
<?php if ($preface_last): ?>
<div id="preface-last" class="column">
<?php print $preface_last; ?>
</div><!-- /preface-last -->
<?php endif; ?>
</div><!-- /preface-wrapper -->
<?php endif; ?>
</div><!-- /preface -->
<div id="main">
<div id="main-wrapper" class="clearfix">
<?php if ($breadcrumb): ?>
<div id="breadcrumb">
<?php print $breadcrumb; ?>
</div><!-- /breadcrumb -->
<?php endif; ?>
<?php if ($sidebar_first): ?>
<div id="sidebar-first">
<?php print $sidebar_first; ?>
</div><!-- /sidebar-first -->
<?php endif; ?>
<div id="content-wrapper">
<?php if ($messages): ?>
<?php print $messages; ?>
<?php endif; ?>
<?php if ($content_top): ?>
<div id="content-top">
<?php print $content_top; ?>
</div><!-- /content-top -->
<?php endif; ?>
<!-- start block for main content content -->
<div class="rounded-block">
<div class="rounded-block-top-left"></div>
<div class="rounded-block-top-right"></div>
<div class="rounded-outside">
<div class="rounded-inside">
<p class="rounded-topspace"></p>
<div class="content">
<div id="content">
<?php if ($tabs): ?>
<div id="content-tabs">
<?php print $tabs; ?>
</div>
<?php endif; ?>
<?php if (($sidebar_first) && ($sidebar_last)) : ?>
<?php if ($sidebar_last): ?>
<div id="sidebar-last">
<?php print $sidebar_last; ?>
</div><!-- /sidebar_last -->
<?php endif; ?>
<?php endif; ?>
<div id="content-inner">
<?php if ($help): ?>
<div id="help">
<?php print $help; ?>
</div>
<?php endif; ?>
<?php if ($title): ?>
<h1 class="title"><?php print $title; ?></h1>
<?php endif; ?>
<div id="content-content">
<?php print $content; ?>
</div>
</div><!-- /content-inner -->
</div><!--/content -->
</div><!-- /content -->
<p class="rounded-bottomspace"></p>
</div><!-- /rounded-inside -->
</div><!-- /rounded-outside -->
<div class="rounded-block-bottom-left"></div>
<div class="rounded-block-bottom-right"></div>
</div><!-- /rounded-block -->
<!-- end block for main content content -->
<?php if ($content_bottom): ?>
<div id="content-bottom">
<?php print $content_bottom; ?>
</div><!-- /content-bottom -->
<?php endif; ?>
</div><!-- /content-wrapper -->
<?php if ((!$sidebar_first) && ($sidebar_last)) : ?>
<?php if ($sidebar_last): ?>
<div id="sidebar-last">
<?php print $sidebar_last; ?>
</div><!-- /sidebar_last -->
<?php endif; ?>
<?php endif; ?>
<?php if ($postscript_first || $postscript_middle || $postscript_last): ?>
<div id="postscript-wrapper" class="<?php print $postscripts; ?> clearfix">
<?php if ($postscript_first): ?>
<div id="postscript-first" class="column">
<?php print $postscript_first; ?>
</div><!-- /postscript-first -->
<?php endif; ?>
<?php if ($postscript_middle): ?>
<div id="postscript-middle" class="column">
<?php print $postscript_middle; ?>
</div><!-- /postscript-middle -->
<?php endif; ?>
<?php if ($postscript_last): ?>
<div id="postscript-last" class="column">
<?php print $postscript_last; ?>
</div><!-- /postscript-last -->
<?php endif; ?>
</div><!-- /postscript-wrapper -->
<?php endif; ?>
<?php print $feed_icons; ?>
<?php if ($footer_top || $footer || $footer_message): ?>
<div id="footer" class="clearfix">
<?php if ($footer_top): ?>
<?php print $footer_top; ?>
<?php endif; ?>
<?php if ($footer): ?>
<?php print $footer; ?>
<?php endif; ?>
<?php if ($footer_message): ?>
<?php print $footer_message; ?>
<?php endif; ?>
</div><!-- /footer -->
<?php endif; ?>
</div><!-- /main-wrapper -->
</div><!-- /main -->
</div><!-- /page -->
<?php print $closure; ?>
</body>
</html>will be very grateful for all advice