The best solution I found is to use the CSS ::before selector. That way the bullets won't sit outside the container they're in. I wanted my bulleted list in the Short Description, but you could do this in the regular description as well. Here's how I worked it out on my site...
Create an unordered list using HTML. Example:
- Code: Select all
<ul class="s-desc">
<li>All Aluminum Construction</li>
<li>Available in 6 or 10 Tray Capacity for 18” x 26” trays</li>
<li>High Quality 5” Polyurethane swivel casters for easy maneuvering</li>
<li>Fully welded frame for strength</li>
</ul>
Notice I gave the <ul> tag a class of "s-dec." In my CSS, I added the following:
- Code: Select all
.s-desc li:before {
content: "\f111";
font-family: FontAwesome;
font-size: 6px;
left: 0;
position: absolute;
top: 15px;
padding: 0; }
All that CSS is just to create the bullets. The content is set to "\f111" because that is the FontAwesome web font's code for bullets. The size of the bullets is 6px, and the 15px positioning puts them in the middle of the text line. You may need to adjust some of those settings to get yours to look the way you want.
I prefer this version because I have longer text for each bullet that may wrap to the next line. I want any text on the second line to left align with the first line of text, not the bullets. If you use the traditional disc bullets in CSS, and set their position to inside, that's what will happen, which looks odd. If you set position to outside, text left aligns from line to line, but the bullets sit outside to the left of the container, which again looks odd. The above solution solves both of those issues.
Hope that helps!