Thread: css question
View Single Post
Old 04-18-2024, 07:12 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,370
Karma: 129333690
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by skil-phil View Post
Is it possible to include a text string into a css property?
For example:

p.break {
text-align: center;
text: "this is a break";
}

Then use:
<p class="break"></p>

Thanks
What you want is to add in comments to the CSS. Here is the corrected CSS with a comment.

Code:
/* This is a break */
p.break {
  text-align: center;
  text-indent: 0;
}
JSWolf is offline   Reply With Quote