nmsranito Posted May 13, 2013 Share Posted May 13, 2013 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 More sharing options...
irwingb Posted May 13, 2013 Share Posted May 13, 2013 Can you explain me better? Link to comment Share on other sites More sharing options...
newseed Posted May 13, 2013 Share Posted May 13, 2013 (edited) 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 May 13, 2013 by newseed Link to comment Share on other sites More sharing options...
niche Posted May 13, 2013 Share Posted May 13, 2013 Just in case: http://www.w3schools.com/cssref/sel_after.asp Link to comment Share on other sites More sharing options...
nmsranito Posted May 15, 2013 Author Share Posted May 15, 2013 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 More sharing options...
newseed Posted May 15, 2013 Share Posted May 15, 2013 You know, I really don't know. You might test it. If it does not give you the desire results then there is an alternative which requires the use of span tag and background image. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now