Login Form

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

If you are experiencing login issues, 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.

Horizontal Ruler

More
7 months 3 days ago #4676 by Hadschi
Hadschi created the topic: Horizontal Ruler
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
7 months 3 days ago #4677 by syw
syw replied the topic: Horizontal Ruler
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
7 months 3 days ago #4678 by Hadschi
Hadschi replied the topic: Horizontal Ruler
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
7 months 3 days ago - 7 months 3 days ago #4679 by syw
syw replied the topic: Horizontal Ruler
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: 7 months 3 days ago by syw.
The following user(s) said Thank You: Hadschi

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

More
7 months 3 days ago #4680 by Hadschi
Hadschi replied the topic: Horizontal Ruler
Thanks a lot, it works, just perfect ;-)
András

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

More
7 months 2 days ago #4681 by syw
syw replied the topic: Horizontal Ruler
You are welcome!

Olivier.

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