It looks fine right now, aside from hugging the center column like you said is the problem. :)
There are a couple of ways I can think of to do this...
1. The least involved would probably be to just create a wrapper div around where you put your news into the page template. For example, this code you insert into whatever page is going to display your news:
Code:
<?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_NEWS_SUMMARY_MODULE)); ?>
Instead of that, just wrap it in a div like so:
Code:
<div id="news"><?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_NEWS_SUMMARY_MODULE)); ?></div>
And then style the div with your desired margin/padding or whatever. You can even use the cascade to then style classes or items within the new div.
2. The next option, a little more difficult and will require delving into PHP is to modify the news.php class. This is located @ includes/classes/news.php (and by the way, make sure you know all about overrides and backup your site before doing a lot of this type of stuff). It's not fully customizable but there are some things you can do... If you look at this code (starting at line 27):
Code:
function newsHeader($header, $date, $links_array = false) {
$this->news_page .= '<div class="newsHeader"><h1>' . $header . '</h1></div>' . "\n";
$this->news_page .= '<div class="newsHeadlineText">' . $date;
if ($links_array && is_array($links_array)) {
foreach ($links_array as $link) {
$this->news_page .= ' | <a href="' . $link['link'] . '">' . $link['text'] . '</a>';
}
}
$this->news_page .= '</div>' . "\n";
$this->clearSplit();
return true;
}
...you can see where the markup is created for the news content. If you want you can change classes or add markup to customize the plugin more. For example before line 28 you could add your news wrapper div:
Code:
$this->news_page .= '<div class="newsHeader"><h1>' . $header . '</h1></div>' . "\n";
You could add:
Code:
$this->news_page .= '<div id="news"><div class="newsHeader"><h1>' . $header . '</h1></div>' . "\n";
...Just make sure you close things like divs where they should be closed, you'll have to figure that out.
3. And finally another option would be to try and setup or modify some of the style declarations for the news markup. Maybe you've already tried this, but, taking a look at the markup via View Source you'll see:
HTML Code:
<div class="newsHeader"><h1>Carefree Golf News</h1></div>
<div class="newsHeadlineText">THURSDAY 20 DECEMBER, 2007 | <a href="http://www.carefree##################.com/index.php?main_page=news_rss"><img src="includes/templates/custom/images/icons/news_rss.gif" alt="RSS Feed" title=" RSS Feed " width="15" height="9" /></a></div>
<div class="clearSplit"><hr /></div>
<p class="articleHeading">Annual Fun Day Golf Tournament</p>
<p class="articleByLine"><span class="author">by Bill</span> | <span class="comments"><a href="http://www.carefree##################.com/index.php?main_page=news_comments&article_id=1">post a comment</a></span></p>
<strong>Annual Fun Day Golf Tournament</strong> <br />
Monday, May 5th, 2008 <br />
Tatum Ranch Golf Course<br />
Shotgun Start: 12.30 p.m.<br />
Price includes:<br />
Dinner following the tournament, raffle prizes<br />
*A FREE FOURSOME of golf for each player<br />
(for a later date)<br />
Hole in One<br />
Donated by Midway Chevrolet<br />
<div class="clearboth"><hr /></div>
<ul class="articleLinkList">
<li><a href="http://www.carefree##################.com/index.php?main_page=redirect&action=url&goto=www.carefreecavecreek.org%2Fgolf.php" target="_blank">Complete Details</a></li>
</ul>
<div class="clearSplit"><hr /></div>
<div class="splitSolidGray"><hr /></div>
<div class="clearSplit"><hr /></div>
<div class="clearSplit"><hr /></div>
<p class="articleText"><a href="http://www.carefree##################.com/index.php?main_page=news_archive">News archive</a></p>
You can try setting styles for some of the classes in there. If you wanted to apply the same style to everything just wrap each class into one declaration:
Code:
.newsHeader,.newsHeadlineText
,.articleLinkList,.articleText { margin-left: 20px; padding: 20px; ... etc }
Theres a few different options and hopefully one will work for you. Good luck!
- Jonah
Bookmarks