Issue
I feel like I saw a way, using the CSS content property, to insert a line break tag before an element. Obviously this doesn't work:
#restart:before { content: '<br/>'; }
But how do you do this?
Solution
It's possible using the \A escape sequence in the psuedo-element generated content. Read more in the CSS2 spec.
#restart:before { content: '\A'; }
You may also need to add white-space:pre; to #restart.
note: \A denotes the end of a line.
p.s. Another treatment to be
:before { content: ' '; display: block; }
Answered By - bookcasey
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.