Answers for "edit text css"

6

css change text

IDENTIFIER {
	visibility: hidden;
	position: relative;
}
IDENTIFIER::after {
	visibility: visible;
	position: absolute;
	top: 0;
	left: 0;
	content: "NEW_CONTENT";
}
Posted by: Guest on June-19-2020
4

font color css

Don't use keywords like green, orange, red or so on because browsers will interpretate them in differen colors. Use rgb or hex instead
Posted by: Guest on December-08-2020
0

change text content using css

example:

<p class="toBeReplaced">Old Text</p>

The text “Old Text” needs to be hidden first and a new text has to be positioned exactly where the old text was. To do so, we change the visibility of this text using CSS to hidden first.

.toBeReplaced {
    visibility: hidden;
    position: relative;
}
Then we add a new text at the exact same position, using the pseudo elements and corresponding explicit positioning.

.toBeReplaced:after {
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
    content: "This text replaces the original.";
}
Posted by: Guest on November-11-2021

Browse Popular Code Answers by Language