I have an unpleasant problem. I want my first 4 items in the list to be numbered, but I want to leave the fifth item from the numbering. Here is my css:
#alternate_navigation ol
{
display:block;
padding:0;
margin:0;
counter-reset: item;
}
#alternate_navigation li
{
display:block;
padding:0px 0px 0px 10px;
margin:0;
background: url('images/list_bg.jpg') no-repeat;
height:19px;
width:99%;
border-bottom:1px solid #B9B5B2;
}
#alternate_navigation li:before
{
content: counter(item) ". ";
counter-increment: item ;
}
RESULT:
- Online booking
- Coupon order
- Print letters
- Send emails
- View Orders
How could I make sure that the last element is not numbered as follows:
- Online booking
- Coupon order
- Print letters
- Send letters
View orders
and yes HTML
<div id="alternate_navigation">
<ol>
<li><a href="#">Online Booking</a></li>
<li><a href="#">Coupon Ordering</a></li>
<li><a href="#">Print Letters</a></li>
<li><a href="#">Send Emails</a></li>
<li><a href="#">View orders</a></li>
</ol>
<div>
Thanks for any answer
ant source
share