February 27, 2012
How to add a colons (:) between inline list elements?
Question by DexyOnline
Is there anyway to add colons between inline list elements?
Example:
home : blog : contact
Answer by Sarfraz
You can use :after
and content
:
/* add : after each li */
#ul li:after{
content:":"
}
/* remove from last one */
#ul li:last-child:after{
content:""
}