Div/Class Line Spacing - SOLVED
Posted: Tue Sep 25, 2007 8:49 am
Hi
This is not really a CMS question, but you all seem so helpful I thought I would try - I don't much about html etc so this might seem basic.
On my site www.christchurchguildford.com I am using the news module - with results shown in the lower half of the home page
As you can see there is big space between the heading and the summary text. I would like to remove this so that the news items are closer together. I can't see where this space is defined - or is it automatic? In which case what can I do to over-ride this. I'm sure it can be done!
My News Summary Template is:-
{foreach from=$items item=entry}
{$entry->titlelink}
{if $entry->summary}
{eval var=$entry->summary}
[{$entry->morelink}]
{else if $entry->content}
{eval var=$entry->content}
{/if}
{/foreach}
And my News Style sheet is this:-
div#news {
margin: 2em 0 1em 1em; /* margin for the entire div surrounding the news list */
border: 1px solid #000;
background: #FFE9AF;
}
div#news h2 {
line-height: 2em;
background: #fff;
}
.NewsSummary {
/* padding: 0.5em 0.5em 1em; padding for the news article summary */
/* margin: 0 0.5em 1em 0.5em; margin to the bottom of the news article summary */
border-bottom: 1px solid #ccc;
}
.NewsSummaryPostdate {
font-size: 90%;
font-weight: bold;
}
.NewsSummaryLink {
font-weight: bold;
padding-top: 0.2em;
margin: 0 0 0 0;
}
.NewsSummaryCategory {
font-style: italic;
margin: 5px 0;
}
.NewsSummaryAuthor {
font-style: italic;
padding-bottom: 0.5em;
}
.NewsSummarySummary, .NewsSummaryContent {
line-height: 120%;
margin 0 0 0 0;
}
.NewsSummaryMorelink {
/* padding-top: 0.1em; */
text-align: left;
}
#NewsPostDetailDate {
font-size: 90%;
margin-bottom: 5px;
font-weight: bold;
}
#NewsPostDetailSummary {
line-height: 150%;
}
#NewsPostDetailCategory {
font-style: italic;
border-top: 1px solid #ccc;
margin-top: 0.5em;
padding: 0.2em 0;
}
#NewsPostDetailContent {
margin-bottom: 5px;
line-height: 150%;
}
#NewsPostDetailAuthor {
padding-bottom: 1.5em;
font-style: italic;
}
/* to add specific style to the below divs, uncomment them. */
/*
#NewsPostDetailTitle {}
#NewsPostDetailHorizRule {}
#NewsPostDetailPrintLink {}
#NewsPostDetailReturnLink {}
*/
This is not really a CMS question, but you all seem so helpful I thought I would try - I don't much about html etc so this might seem basic.
On my site www.christchurchguildford.com I am using the news module - with results shown in the lower half of the home page
As you can see there is big space between the heading and the summary text. I would like to remove this so that the news items are closer together. I can't see where this space is defined - or is it automatic? In which case what can I do to over-ride this. I'm sure it can be done!
My News Summary Template is:-
{foreach from=$items item=entry}
{$entry->titlelink}
{if $entry->summary}
{eval var=$entry->summary}
[{$entry->morelink}]
{else if $entry->content}
{eval var=$entry->content}
{/if}
{/foreach}
And my News Style sheet is this:-
div#news {
margin: 2em 0 1em 1em; /* margin for the entire div surrounding the news list */
border: 1px solid #000;
background: #FFE9AF;
}
div#news h2 {
line-height: 2em;
background: #fff;
}
.NewsSummary {
/* padding: 0.5em 0.5em 1em; padding for the news article summary */
/* margin: 0 0.5em 1em 0.5em; margin to the bottom of the news article summary */
border-bottom: 1px solid #ccc;
}
.NewsSummaryPostdate {
font-size: 90%;
font-weight: bold;
}
.NewsSummaryLink {
font-weight: bold;
padding-top: 0.2em;
margin: 0 0 0 0;
}
.NewsSummaryCategory {
font-style: italic;
margin: 5px 0;
}
.NewsSummaryAuthor {
font-style: italic;
padding-bottom: 0.5em;
}
.NewsSummarySummary, .NewsSummaryContent {
line-height: 120%;
margin 0 0 0 0;
}
.NewsSummaryMorelink {
/* padding-top: 0.1em; */
text-align: left;
}
#NewsPostDetailDate {
font-size: 90%;
margin-bottom: 5px;
font-weight: bold;
}
#NewsPostDetailSummary {
line-height: 150%;
}
#NewsPostDetailCategory {
font-style: italic;
border-top: 1px solid #ccc;
margin-top: 0.5em;
padding: 0.2em 0;
}
#NewsPostDetailContent {
margin-bottom: 5px;
line-height: 150%;
}
#NewsPostDetailAuthor {
padding-bottom: 1.5em;
font-style: italic;
}
/* to add specific style to the below divs, uncomment them. */
/*
#NewsPostDetailTitle {}
#NewsPostDetailHorizRule {}
#NewsPostDetailPrintLink {}
#NewsPostDetailReturnLink {}
*/