« Back to the HTML Forum

How do i change the text color on the text that's red or black by default? (not including body text)

Posted by xXBlvDvkkXx

posted

Forum: HTML Group

ex: "Mood:", "Spacehay URL", the url itself, (black) & "(username)'s Blurbs", "About me:", "Who I'd like to meet" (red)

it's not on the website linked here, or at least i can't find it. i would also lyk 2 know if theres a way 2 change that text and font.


Report Topic

1 Reply

Reply by vogel

posted
updated

:root{
--dark-orange: #222 /*This will change all of the red text to black*/
}
p b{
color: #FFF /*This will change all the black heading text to white*/
}

font-family: "Times New Roman", Times, Serif; /*You can stick this line in a piece
of code to change the font*/

To change the text of an element you need to first hide the original text and then add your own with selector::after
.mood p b{
font-size:0px
}
.mood p b::after{
content:"Hello";
font-size:100%
}
Here are the different selectors for the ones you listed.
.mood -> Mood
.url-info p b:nth-child(1) -> Spacehey URL
.url-info p b:nth-child(2) -> the URL
h4 -> The red headings


Permalink Report Reply