Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List-Style CSS override back to default

Tags:

css

I want to turn this css element back to the default setting and I can't figure out how to override these list-style css elements. They are on another style sheet that I can't alter but I'm linking to. Please help if you know how.

ol li {
  list-style: decimal;
}
ol {
  list-style: decimal outside;
}
like image 903
Blynn Avatar asked Mar 09 '12 14:03

Blynn


People also ask

How do I reset CSS to default?

Use the initial keyword to set a property to its initial value. Use the inherit keyword to make an element's property the same as its parent. Use the revert keyword to reset a property to the value established by the user-agent stylesheet (or by user styles, if any exist).

How do you overwrite style in CSS?

To override the CSS properties of a class using another class, we can use the ! important directive. In CSS, ! important means “this is important”, and the property:value pair that has this directive is always applied even if the other element has higher specificity.

What is the default list style CSS?

The CSS property for styling the marker type is list-style-type . The default list-style-type value for an ordered list is decimal , whereas the default for an unordered list is disc .


1 Answers

You may need:

ol li { display: list-item; }
like image 67
Jonny White Avatar answered Oct 19 '22 02:10

Jonny White