Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

check Horizontal Ruler

More
8 years 44 minutes ago #4676 by Hadschi
Horizontal Ruler was created 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
8 years 32 minutes ago #4677 by syw
Replied by syw on 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
8 years 27 minutes ago #4678 by Hadschi
Replied by Hadschi on 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
8 years 12 minutes ago - 8 years 11 minutes ago #4679 by syw
Replied by syw on 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: 8 years 11 minutes ago by syw.
The following user(s) said Thank You: Hadschi

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

More
7 years 11 months ago #4680 by Hadschi
Replied by Hadschi on 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 years 11 months ago #4681 by syw
Replied by syw on topic Horizontal Ruler
You are welcome!

Olivier.

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