Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

143
Views
unordered list nested in ordered list not giving the expected result in a vuejs application

How can I nest an unordered list in an ordered list in vue 2 ?? I have tried

<template>
  <div class="p-14">
    <ol class="numberlist">
      <li>An numbered list</li>
      <li>Containing

        <ul class="sqaredotlist">
          <li>A dotted list</li>
          <li>Containing

            <ol class="romanlist">
              <li>A roman numeral list</li>
              <li>And some items</li>
              <li>Like this</li>
            </ol>
          </li>
          <li>And some items</li>
          <li>Like this</li>
        </ul>
      </li>
      <li>And some items</li>
      <li>Like this</li>
    </ol>
  </div>
</template>

<script>
export default {

}
</script>

<style scoped>
  ol.numberlist {
    list-style-type: decimal;
  }

  ul.sqaredotlist {
    list-style-type: square;
  }

  ol.romanlist {
    list-style-type: lower-roman;
  }
</style>

but that gives me. It looks like the unordered elements are interpreted as ordered.

1. An numbered list.
2. Containing
1. A dotted list
2. Containing
1. A roman numeral list
2. And some items
3. Like this
3. And some items
4. Like this
3. And some items
4. Like this

Without the css classes I get the same result. If anyone knows how to nest an unordered list in an ordered list, please help me !!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Perhaps a different file in your directory is affecting this Vue file. Is there a 'global' stylesheet in your project? Maybe that stylesheet says:

li {
    list-style-type: decimal !important;
}
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!