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

157
Views
I am trying to display the detail icon at far right by using webkit-details-marker but not getting the desired output

::-webkit-details-marker {
  float: right;
}
<div class="ques-block">
  <details>
    <summary class="question">How important is accordian?</summary>
    <p class="answer">
      Accordian is type of question and answer forum in which qestion is in the question block and answer is in the answer block.
    </p>
</div>

In the CSS section the ::-webkit-details-marker{} is not working, and even if it is working the output is not visible; what am I doing wrong?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

You can simulate it using direction

.question {
  direction: rtl;
  text-align: left;
}

.question>div {
  display: inline-block;
  direction: ltr;
}
<div class="ques-block">
  <details>
    <summary class="question">
      <div>How important is accordian?</div>
    </summary>
    <p class="answer">
      Accordian is type of question and answer forum in which qestion is in the question block and answer is in the answer block.
    </p>
  </details>
</div>

over 4 years ago · Santiago Trujillo Report

0

Not sure how to override marker style, but I can suggest a workaround.

details summary {
  position: relative;
}

details summary::after {
  content: "▶";
  position: absolute;
  margin-left: 20px;
}

details[open] summary::after {
  content: "▼";
}

summary {
  list-style: none
}

summary::-webkit-details-marker {
  display: none;
}
<div class="ques-block">
  <details>
    <summary class="question">How important is accordian?</summary>
    <p class="answer">
      Accordian is type of question and answer forum in which qestion is in the question block and answer is in the answer block.
    </p>
  </details>
</div>

over 4 years ago · Santiago Trujillo 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!