Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS - How to add dot between navigation title

Tags:

css

After I login www.linkedIn.com, the navigation bar on top right displays the title as follows:

Welcome, XXX * Skip to Content * Search  * Add Connections * Settings * Help  * Sign Out

I would like to know how they add * between different titles. I have used firebug but I didn't see where they add such a small * between titles.

Thank you

like image 210
q0987 Avatar asked Aug 25 '10 21:08

q0987


People also ask

How to put a dot between words in CSS?

How do you put dots between words in CSS? If you wish to have just the dots below the element, then use: border-bottom: thick dotted; You can also use think dotted or just dotted if you want different sizes.

What are dots for in CSS?

in CSS means it is a class and it can be applied to many elements. # in CSS means it is an ID and it can be applied to one element per page. Without the either, it is a tag, targets all the elements with the tag name.


1 Answers

Instead of

span:after {
content: '*';
}
span.last:after {
content: '';
}

do

span:after {
content: '*';
}
span:last-child:after {
content: '';
}

This way you don't have to give the last one a special class.

like image 99
zackify Avatar answered Sep 30 '22 12:09

zackify