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!

Horizontal Ruler

More
IP: 194.191.249.9 10 years 6 days 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
  • syw
  • syw's Avatar
  • Administrator
  • Administrator
More
IP: 68.194.32.112 10 years 6 days 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
More
IP: 194.191.249.9 10 years 6 days ago #4678 by Hadschi
Replied by Hadschi on topic Horizontal Ruler
Hi Olivier
Yes, I need some help for the CSS, thanks
András
  • syw
  • syw's Avatar
  • Administrator
  • Administrator
More
IP: 68.194.32.112 10 years 6 days ago - 10 years 6 days ago #4679 by syw
Replied by syw on topic Horizontal Ruler
No problem!
Code:
#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: 10 years 6 days ago by syw.
The following user(s) said Thank You: Hadschi
More
IP: 194.191.249.9 10 years 6 days ago #4680 by Hadschi
Replied by Hadschi on topic Horizontal Ruler
Thanks a lot, it works, just perfect ;-)
András
  • syw
  • syw's Avatar
  • Administrator
  • Administrator
More
IP: 68.194.32.112 10 years 6 days ago #4681 by syw
Replied by syw on topic Horizontal Ruler
You are welcome!

Olivier.