Striving to achieve perfect left alignment of bullet points using html and css has proven challenging, especially when font sizes are altered.
To address this issue, the list-style-position
property must be set to outside
. Attempts with the inside
setting followed by adjustments with text-indent
yielded unsatisfactory results.
While my current approach shows some improvement, further refining is required. It might be more efficient to directly apply styles to the ul
elements in order to enhance the overall appearance.
ul
{
list-style-type: disc;
list-style-position: outside;
padding: 0.5em 0 0 3em;
}
ul.two li
{
font-size: 20px;
}
ul.three li
{
font-size: 35px;
}