This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

CSS dots and dashes  RSS feed

 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to use css to put dots or dashes after a line of text to another piece of text similar to following:

Chapter 1: intro -------------------------------------- pg 12
Chapter 2: Something ---------------------------------- pg 35

I have seen this before but I cannot remember where.
 
Nimchi Yung
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure if this is what you are looking for. But you could use
pseudo-elements.

Try this:



--Nimchi
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here play with this:


Eric
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!