center unordered list html

CSS

.center
{
 text-align: center;
 list-style-position: inside;
}
ol.center li
{
 text-align: left;
 margin-left: 45%;
}

HTML

<ol class="center">Lorem ipsum dolor sit amet consectetur adipisicing elit. Reprehenderit, repellat.
<li>List1<li>
<li>List2<li>
</ol>

3.5
2
Slbox 90 points

                                    ul {
  display: table;
  margin: 0 auto;
}

3.5 (2 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
why does the unordered list go to the center when I try to align items to center align an unordered list in the center how we can align unordered list horizontally in html ordered list html center order list center in html how to align unordered list horizontally in html how to center ordered list in css html css unordered list center how to centre block an unordered list css html ul list center make unordered list center how to align ordered list in html how to make an ordered list to align in html unordered list html center how to center an unordered list center unordered list html center unordered list in div html align bulleted list center unordered list in center how to center unordered list css how to make ordered list in center html center unordered list center ordered list html center align ordered list html center unordered list how to center unordered lists in css centring liste in html how to display list text in centre how to align list items center align center ul list center unordered list css how to center an unordered list in html css center unordered list how to get li bullets to center with css making a list in html centered how to center list HTML CSS how to get a bulleted list centered in a div how to center ul list css unordered list align center align list bullets center align ul center in CSS centering a list how to make list bullet centered how to center a list twxt-align center a li item how to align unordered lists in html justif ul center css li center in ul align unsorted list incenter html center ul in div center li with respect to a div bullet list centered how to center an ordered list in html
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source