Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
The place for more technical questions for those who want to create new pagetypes or bespoke functionality.
  • Page:
  • 1

TOPIC:

Bullets page type 7 years 10 months ago #4174

  • Neil Pollock
  • Neil Pollock's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 92
  • Thank you received: 4
Whenever someone uses this page type it seems they always want it to appear as:

Here is a list:
• item 1
• item 2
• item 3

However, the nature of the page is that either everything has a bullet, or nothing does. Initially I tried recreating the page functionality from scratch to get it to work as they wanted. But then I realised there was a simpler fix, which some may find useful:
p.bullet:not(:first-of-type) {
	margin-left: 32px;
}
p.bullet:not(:first-of-type):before {
	content:'•';
}

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

Last edit: by Neil Pollock.
  • Page:
  • 1
Moderators: JohnSmith
Time to create page: 0.041 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search