My task involves reformatting predefined HTML using CSS to achieve a different layout. The HTML is received as an error message from the server and is not editable.
.server-errors ul {
list-style: none;
}
.server-errors li:before {
content: "D";
font-family: "pictos";
}
<div class="server-errors">
<ul>
<li>
<label>Server error message goes here.</label>
</li>
</ul>
</div>
The objective is to present this information without the <li>
dot and instead replace it with a different character (pictos) that is aligned to the left and vertically.
I have successfully displayed the character but am struggling to align it properly as a separate entity.
Desired Output:
---------------------------------------
- Long error message goes -
- X here and it will span -
- three lines -
---------------------------------------
Current Output:
---------------------------------------
- X Long error message goes here and -
- will span three lines -
- -
---------------------------------------
I am unsure about the specific changes I need to make or which parts of the CSS to modify in order to achieve the desired effect.