« 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

5 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 nil

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

Reply by Ryan Walker

posted

Great tips here! Just to add - hex codes are definitely the most reliable way to go. Sites like Coolors or Adobe Color are super handy for picking exact shades and generating palettes when you want your profile to feel cohesive.

If you ever get curious about how bigger websites handle typography and color at scale, I stumbled across https://arounda.agency/services/enterprise-website-design-agency a while back and found it interesting to see how the same basic CSS principles we're talking about here translate into full design systems. Kind of cool to see where learning the basics can take you!



Good luck with your profile - sounds like you're picking things up quickly!


Permalink Report Reply