« Web, HTML, Tech Forum

changing text colour

hi! me again. does nayone have the code to change text colours? i just wanna change the text colour of my interests section. maybe change the font too. thank you! appreciate the help a lot <3


Report Topic

4 Replies

Sort Replies:

Reply by Gluma

posted

.profile .table-section {

color: *insert color name or hex code*;

font-family: *insert here*;

font-weight: *insert here*;

}

Use the first property only if you only want to change colors. If you want to change the font, you'd first import the font you wanna use and then copy its font family in respective location. Font weight may or may not be necessary, depending on your font, I think


Permalink Report Reply

is there a specific colour set im supposed to use for it? and what am i supposed to put for the size part? 


Permalink Report Reply

Reply by Niliara

posted

You don't really need to change the text size, just apply the css color property!

https://www.w3schools.com/css/css_colors.asp

I like doing it in hex (#rrggbb) but you can also do it by using color names or rgb.


Also, w3schools is really nice to get started with html and css, I recommend checking it out if you want to learn more!


Permalink Report Reply

Reply by Gluma

posted

What the above reply said ^^^^

If you only want to focus on colors, just do the "color: _____". I added the other two properties just in case you wanted to change the font of certain sections. My explanation was a bit confusing lol so here's this post that talks about importing fonts for specific sections


Permalink Report Reply