Postings

You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).

Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!

To display the image of the first article only

More
IP: 59.163.203.10 14 years 7 months ago #289 by suganyadrupal
Hi,
I am very new to Joomla. I have installed your module. Its very easily to configure. Thanks a lot for this module.

My requirement: The section should display the latest news .The first article in the section should be displayed along with the image and description. Just the tittle should be display for the remaining article in the section.

What should i do to get my requirement done?
The following user(s) said Thank You: admin
More
IP: 207.181.196.3 14 years 7 months ago - 14 years 7 months ago #290 by admin
Hello!
you can achieve this with CSS only and the :first-child pseudo element.
Code:
.newslist .newshead { display: none; } .newslist .newshead:first-child { display: block; } .newslist .newsinfo { margin-left: 0 !important; } .newslist .newsinfo:first-child { margin-left: [the size of your image]px !important;

Keep doing the same for other components like the description...

Olivier.
Last edit: 14 years 7 months ago by admin.