Jump to content

Close paragraph


nmsranito
 Share

Recommended Posts

Hello Is there any way, using css, to close a paragraph with a selected character after using CR?I mean, after hitting ENTER, to fill the rest of the line with some character... My purpose is to have a text like: MY TEXT Something.**************Second paragraph, bla bla yadayada yada.*************************** I'm using primefaces to input text, and the content is RICH text. Thanks for the help

Link to comment
Share on other sites

If I understand correctly the answer is yes. p:after {content: " ***********************************************************************";} You need to add enough of the characters to fill the width. If you noticed, I added a blank space before the first asterisk so that it allows a space between the last letter and first asterik

Edited by newseed
Link to comment
Share on other sites

If I understand correctly the answer is yes. p:after { content: " ***********************************************************************"; } You need to add enough of the characters to fill the width. If you noticed, I added a blank space before the first asterisk so that it allows a space between the last letter and first asterik
Problem is, if the characters are too many for the space left in the paragraph, they will go to next line, correct?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...