CSS tutorial #1: Styling an ordered or unordered list in DIVI

October 18, 2024
Recently, I was editing the CSS of one of the pages on Website Promoters. An issue that arose was making an ordered list more readable since, by default, all the list elements of the ordered list had no spacing between each element in the list. An ordered list appears, as shown in the example below.

  1. List Item #1
  2. List Item #2
  3. List Item #3

As seen above, there isn’t a lot of spacing between each list item. With lists that include more text, this can quickly become an eyesore. Typically, paragraphs of text in WordPress can be made more readable in various ways. This can include increasing the line height of the text in the module being used. Additionally, the padding or spacing at the bottom of a list item can be increased from the default value of 0px.

However, this option isn’t available for ordered lists or unordered lists. The way to make lists more readable is to add custom CSS to the module. Each list, whether ordered or unordered, is a collection of li or list HTML elements. For each list item, the list elements’ bottom spacing or bottom margin. Spacing enlarges the HTML elements container, whereas the margin increases the distance between the containers of adjacent HTML elements. When applied to a text module, the CSS below should make any list more readable.

ol li, ul li {
padding-bottom: 10px;

}

If you want to learn more about optimizing your online presence, including through Google ad groups, fill out our contact form now to contact us. We offer a FREE website analysis, which can provide valuable insights into your current marketing strategies. Additionally, if you want to explore more blog posts related to SEO, Divi, WordPress, WordPress plugins, digital marketing, computer science topics, or other related subjects, visit our website’s blog section.

0 Comments

Trackbacks/Pingbacks

  1. CSS tutorial #2: Custom CSS in Divi - Website Promoters - […] To determine the classes, ids, or HTML tag names of content on a website, go to the elements tab…

Submit a Comment

Related Posts

PHP Debugging Techniques for WordPress

PHP Debugging Techniques for WordPress

Understanding the Importance of Debugging in WordPress Development Debugging is an essential part of the software development lifecycle, particularly when working with complex systems like WordPress. For plugin developers, it serves as a critical tool to identify and...

The New CSS Features That Will Elevate Your Web Design

The New CSS Features That Will Elevate Your Web Design

Introduction Cascading Style Sheets (CSS) is a fundamental language for web design, responsible for defining the visual appearance and layout of websites. Since its inception, CSS has revolutionized the way we create and style web pages, enabling developers and...

Unleashing the Power of IONOS: Elevate Your Online Presence

Unleashing the Power of IONOS: Elevate Your Online Presence

Introduction to IONOS In the ever-evolving digital landscape, having a robust online presence has become paramount for businesses and individuals alike. IONOS, a leading provider of cloud services, web hosting, and online tools, offers a comprehensive suite of...

Call Now Button