Skip to content Skip to sidebar Skip to footer

Customizing Numbered Lists in Posts + 3 Examples

We can create numbered lists using the Numbered List tool in the Compose tab of Blogger posts.

blogger gadgets, blogger widgets

Access to the numbered list is via the "numbered list" HTML code. You don't have to worry about adding HTML because with this tool the editor will do it for you. If you switch to the HTML tab, you'll see that the list you've created looks like this:

  1. Content 1st. element

  2. 2nd index. element

  3. Content of part 3. element

  4. 4th content. element

  5. like this...
This tool automatically numbers each list item based on "order", hence the name HTML Ordered Lists. Each element is numbered sequentially (after 1), even if you don't see it in the HTML.

Use ordered lists in messages

Creating numbered lists is very useful for providing instructions. It's perfect for blogs that need to number recipe steps, or blogs that share tutorials… but it can be used on any type of blog that needs to number something.

By default, when you use this tool, numbered items will look like this:
  1. There is nothing, there is nothing, there is nothing, he is drunk, there is no orderly space. Pellentesque en magna vitae diam hendrerit bibendum tempus magna.
  2. Nulla pellentesque egestas sagittis. Cras blandit bibendum ante nec placet. It can be, of course, a porter. Quisque eget elit null and there are no obstacles.
  3. Vivamus sit amet nibh en enim aliquam auctor. Phasellus fringilla eros leo, independently of varius lacus. However, vestibular pain from nisl venenatis varius. Pellentesque feugiat arcu ac purus rhoncus dapibus.
  4. Etiam rutrum or even once. This Porttitor hates o Nishi Porttitor. Pellentesque velit est, sodales luctus feugiat en, porta quis lacus. No accommodation, no problem.
However, we can customize list items with CSS . To achieve this, we will rely on this interesting456 Berea ST tutorial, which explains the method by which we can customize the numbers of each element in the list, as well as the content of each element with some basic properties using CSS.
The trick is basically to override the default numbering with " list style: none " and then use the autonumbering features: " reverse reset " and " reverse increment ". The content property is then added to the spinner's index created with the previous two properties.

How to Add Great Style to Your Custom Posts on Blogger

Simply select one of the styles below, then copy and paste the CSS code by choosing Template > Customize > Advanced > Add CSS.

Some Blogger templates don't allow you to add CSS to this space. In this case, to add CSS styling, you need to access the HTML code of the template from the Blogger dashboard, go to Template > Edit HTML and paste the code over the ]]> symbol. tag (press CTRL + F to find it - you need to click the arrow to expand the code and then search again)


Examples

Here are three examples I created for those who want to customize numbered lists:
 
style 1
  1. There is nothing, there is nothing, there is nothing, he is drunk, there is no orderly space. Pellentesque en magna vitae diam hendrerit bibendum tempus magna.
  2. Nulla pellentesque egestas sagittis. Cras blandit bibendum ante nec placet. It can be, of course, a porter. Quisque eget elit null and there are no obstacles.
  3. Vivamus sit amet nibh en enim aliquam auctor. Phasellus fringilla eros leo, independently of varius lacus. However, vestibular pain from nisl venenatis varius. Pellentesque feugiat arcu ac purus rhoncus dapibus.
  4. Etiam rutrum or even once. This Porttitor hates o Nishi Porttitor. Pellentesque velit est, sodales luctus feugiat en, porta quis lacus. No accommodation, no problem.
.To publish
reverse restoration: if;
list style: no;
*list style: decimal;
font: 13px 'trebuchet MS', 'lucida sans'; /* font size of each element */
padding: 0;
bottom margin: 4em;
text-shadow: 0 1px 0 rgba(255 255 255,.5);
font weight: bold;
}
.post if {
relative position;
screen: lock;
fill: .4em .4em .4em 4em;
*padding: .4em;
field: .5em 0;
text drawing: no;
edge radius: .3em;
switch: easy access to all .3;
}
.post li: hover: for {
rotate: rotate (360 degrees);
}
.publish first
content: counter(li);
reverse increment: li;
position: absolute;
left: 10 pixels;
upper: 50%;
top margin: -1.3em;
height: 2cm;
width: 2cm;
line height: 2em;
color: #fff ; /* number text color */
background: #FA8022 ; /* background color of digits */
edge: .2em solid #fff ; /* border color */
-webkit-box-shadow: 0 8px 5px -7px #888;
-moz-box-shadow: 0 8px 5px -7px #888;
box-shadow: 0 8px 5px -7px #888;
align text: center;
font weight: bold;
edge-radius: 2em;
switch: easy access to all .3;
}

style 2
  1. There is nothing, there is nothing, there is nothing, he is drunk, there is no orderly space. Pellentesque en magna vitae diam hendrerit bibendum tempus magna.
  2. Nulla pellentesque egestas sagittis. Cras blandit bibendum ante nec placet. It can be, of course, a porter. Quisque eget elit null and there are no obstacles.
  3. Vivamus sit amet nibh en enim aliquam auctor. Phasellus fringilla eros leo, independently of varius lacus. However, vestibular pain from nisl venenatis varius. Pellentesque feugiat arcu ac purus rhoncus dapibus.
  4. Etiam rutrum or even once. This Porttitor hates o Nishi Porttitor. Pellentesque velit est, sodales luctus feugiat en, porta quis lacus. No accommodation, no problem.
.To publish
reverse recovery: li;
list style: no;
*list style: decimal;
left margin: 0;
left indent: 0
}
.post if {
relative position;
border:0 0 20px 15px !important;
padding: 4px 5px 4px 10px !important;
list style: no;
*list style: decimal;
bottom border: 1px solid #e2e3e2 ; /* footer of each element */
background: #f2f2f2 ; /* background color of each element */
text indentation: 14px;
}
.publish first
content: counter(li);
reverse growth: if;
position: absolute;
top: -6px;
left: -10px;
font-family: 'Oswald', serif;
font size: 14px ; /* size of numbers */
width: 20px;
margin: 0 0 10px 0;
padding: 4px !important;
color: #A5A5A5 ; /* color of numbers */
align text: left;
background: #e2e2e2 ; /* background color of digits */
text indentation: 6px;
text-shadow: 1px 3px 2px #fff;
}
.post ol li:later{
content: "";
position: absolute;
top: -5px;
left: 17px;
width: 0px;
height: 0px;
border style: solid;
border width: 5px 0 0 5px;
border color: transparent transparent transparent #aeeae ; /* color of the triangle behind */
}

style 3
  1. There is nothing, there is nothing, there is nothing, he is drunk, there is no orderly space. Pellentesque en magna vitae diam hendrerit bibendum tempus magna.
  2. Nulla pellentesque egestas sagittis. Cras blandit bibendum ante nec placet. It can be, of course, a porter. Quisque eget elit null and there are no obstacles.
  3. Vivamus sit amet nibh en enim aliquam auctor. Phasellus fringilla eros leo, independently of varius lacus. However, vestibular pain from nisl venenatis varius. Pellentesque feugiat arcu ac purus rhoncus dapibus.
  4. Etiam rutrum or even once. This Porttitor hates o Nishi Porttitor. Pellentesque velit est, sodales luctus feugiat en, porta quis lacus. No accommodation, no problem.
.To publish
reverse restoration: if;
list style: no;
*list style: decimal;
padding: 0;
bottom margin: 4em;
font: 13px 'trebuchet MS', 'lucida sans'; /* font size of each element */
text-shadow: 0 1px 0 rgba(255 255 255,.5);
}
.post if {
relative position;
screen: lock;
fill: .4em .4em .4em .8em;
*padding: .4em;
margin: 0.5em 0.5 and 4.5em;
text drawing: no;
}
.publish first
content: counter(li);
reverse increment: li;
position: absolute;
left: -30px;
upper: 50%;
top margin: -1em;
background: #bada55 ; /* background color of digits */
height: 2cm;
width: 2cm;
line height: 2em;
align text: center;
font weight: bold;
}
.post ol li:later{
position: absolute;
content: '';
left: -5px;
top margin: -.7em;
upper: 50%;
width: 0;
height: 0;
top border: 8px transparent transparent;
bottom border: 8px transparent solid;
left border: 8px solid #bada55 ; /* right arrow background color */
}
Note. The CSS in these three examples highlights the editable values ​​in blue and adds some comments highlighted in /*green*/ so you know what each thing does.

Compatibility:

It will work in all browsers including IE8; in the case of Internet Explorer 7, number styles will not be displayed because it does not support :before or :pseudo elements. However, I've added a line in the CSS specific to this browser that will produce the default numbering for a sorted list.

Hope this helps you ;)

Post a Comment for "Customizing Numbered Lists in Posts + 3 Examples"