Horizontal Format for News Module
Horizontal Format for News Module
I am trying to change the News format to display in a horizontal format instead of the vertical format. Has anyone been able to do this?
Re: Horizontal Format for News Module
Do you mean the list of news summaries? If so, you will be able to do that through CSS by placing the list of summaries in an unordered list and giving the items agmiller33 wrote: I am trying to change the News format to display in a horizontal format instead of the vertical format. Has anyone been able to do this?
Code: Select all
display: inline-table;
Code: Select all
width: 100px;
Hope that helps.
Re: Horizontal Format for News Module
Worked great! I will post the code as soon as I am done with the site and it has been uploaded.
Thanks!
Thanks!
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Horizontal Format for News Module
I think what is mentioned here is to make a modification to your news summary template.
and then to modify your stylesheet as described above. i.e:
I haven't tried this myself, but this looks like what he was talking about.
Code: Select all
<ul class="newssummary"><!-- or some such thing -->
{foreach from=$entries item='entry'}
<li>
{* the rest of the news summary stuff *}
</li>
{/foreach}
</ul>
Code: Select all
.newssummary li {
display: inline-table;
width: 25%;
}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.