掲示板
CSS - Text Replace
Hello everybody,
does anyone of you know a CSS code for replacing "text"?
I'm using LR 6.0 and on one page I want to rewrite the text of a tab.
Hope you can help me.
With kind regards,
Klee Seubi
does anyone of you know a CSS code for replacing "text"?
I'm using LR 6.0 and on one page I want to rewrite the text of a tab.
Hope you can help me.
With kind regards,
Klee Seubi
Hi Klee,
I think using css, it is not possible to replace the text. Generally in this scenarios javascript like jQuery is used as below.
$('.someClassName').text('new text');
But using css, it is possible to add the new content, before or after the old content like...
.someClassName:after {
content: "new content";
}
Hope it may help you.
I think using css, it is not possible to replace the text. Generally in this scenarios javascript like jQuery is used as below.
$('.someClassName').text('new text');
But using css, it is possible to add the new content, before or after the old content like...
.someClassName:after {
content: "new content";
}
Hope it may help you.
11年前 に Hitoshi Ozawa によって更新されました。
RE: CSS - Text Replace
Liferay Legend 投稿: 7942 参加年月日: 10/03/24 最新の投稿
CSS is just a stylesheet to specify how an element should appear. It doesn't put or change an element.
That is, you can't replace "text" using css.
Are you trying to replace a string "text" that appears on a page?
That is, you can't replace "text" using css.
Are you trying to replace a string "text" that appears on a page?
Hello everybody,
thanks for the useful info (text before and after).
@ Hitoshi: what do you mean with "string" text?
- Greetings,
Klee Seubi
thanks for the useful info (text before and after).
@ Hitoshi: what do you mean with "string" text?
- Greetings,
Klee Seubi
11年前 に Apoorva Prakash によって更新されました。
RE: CSS - Text Replace
Liferay Master 投稿: 658 参加年月日: 10/06/15 最新の投稿
The only kind of change in text (from the original one) using CSS is the text transform property, as
Thanks and Regards,
Apoorva Prakash
h1 {text-transform:uppercase;}
h2 {text-transform:capitalize;}
p {text-transform:lowercase;}
Thanks and Regards,
Apoorva Prakash