The image demonstrates the problem. I want the bullet list to be aligned with the text, not indented.
This must be modified in css i guess, because source is:
<p>This is a test :)</p> <ul> <li>Test1</li> <li>Test2</li> <li>Test3</li> <li>Test4</li> </ul> <p><strong>Bla bla</strong></p> <p><strong>Dette er en test</strong></p> <p><strong><span class="Apple-style-span" style="font-weight: normal;"><strong>Dette er en test</strong></span></strong></p> <p><strong>Dette er en test</strong></p> <p><strong><span class="Apple-style-span" style="font-weight: normal;"><strong>Dette er en test</strong></span></strong></p> </div>
So how can I remove the padding/margin from left in this bull list? I tried margin: 0; padding: 0;
did not work out
Just give the list centered text (e.g. ul. nav { text-align: center; } ) and the list items inline-block (e.g. ul. nav li { display: inline-block; } ). If you want to do it with margin for whatever reason, look into width: fit-content; .
Center Align Text To just center the text inside an element, use text-align: center; This text is centered.
Apply padding-left: 0
and change the list style position to inside:
ul { padding-left: 0; } ul li { list-style-position: inside; }
Example link http://jsfiddle.net/vF5HF/
ul { margin-left: 0; padding-left: 0; } li { margin-left: 1em; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With