Does anyone know the CSS that makes the bullet point sit at the top of a multi-line bulleted list? For some reason with the template that I am using the bullet point centers to the left instead of simply sitting next to the first word if I have more than one line of text.
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
- Adding a timeout to a render function in ReactJS
This is not an answer per-se but it may give others an insight to a similar visual situation with a different set of circumstances.
I had the same issue, like so:
My HTML looked like this:
And the CSS like this:
See the offending part? The
vertical-align: middle;
declaration.There are two solutions:
Solution 1
Remove the
vertical-align: middle;
declaration altogether.Solution 2
Change the value:
vertical-align: middle;
tovertical-align: top;
.Result (as expected in the beginning):
Hope this helps.
You could do something like this:
Set the list style position to inside the list item, see this demo fiddle.
CSS: