Login Form

Login or register to buy licenses or to access software previously purchased.

If you are experiencing login issues, empty your browser's cache and try login from the downloads page. Still having trouble? Please contact us!
×
Postings

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

Posts only show after being reviewed.

Topic-icon Horizontal Ruler

More
2 months 4 weeks ago #4676 by Hadschi
Is it possible to separate the diferent News with a horizontal ruler (<hr />) to separate the articles?
Thanks a lot for your help.
András

Please Log in or Create an account to join the conversation.

More
2 months 4 weeks ago #4677 by syw
Hi András,

yes, there are 2 ways to do it:

- use CSS to add a border for each .news item (differentiate the first child and the remaining items. For instance, add a border top to all .news items and not for the first-child).

- create a template override of the module in your template and add the <hr> tag between items. Template overrides need to be checked after every module update therefore I would suggest not do it and stick with CSS for a maintenance-free solution.

Let me know if you need help with CSS.

Olivier.
The following user(s) said Thank You: Hadschi

Please Log in or Create an account to join the conversation.

More
2 months 4 weeks ago #4678 by Hadschi
Hi Olivier
Yes, I need some help for the CSS, thanks
András

Please Log in or Create an account to join the conversation.

More
2 months 4 weeks ago - 2 months 4 weeks ago #4679 by syw
No problem!
#lnee_XXX ul.latestnews-items li:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

#lnee_XXX ul.latestnews-items li {
    border-top: 1px solid #ccc;
    margin-top: 10px; /* for spacing, optional */
    padding-top: 10px; /* for spacing, optional */
}

Replace XXX with your module instance id

Olivier.
Last Edit: 2 months 4 weeks ago by syw.
The following user(s) said Thank You: Hadschi

Please Log in or Create an account to join the conversation.

More
2 months 4 weeks ago #4680 by Hadschi
Thanks a lot, it works, just perfect ;-)
András

Please Log in or Create an account to join the conversation.

More
2 months 4 weeks ago #4681 by syw
You are welcome!

Olivier.

Please Log in or Create an account to join the conversation.