css code help please?

Hello.

I wrote some CSS code, which is this:

#profile_path_to {

background-color: #000000

}

This one works really well, does exactly what I wanted. I wanted the thing on top (see picture) on my forum to be black.

Unfortunately, as you can see, where it says "confirm friend," the font is also black, and you can't see it. I'd prefer it to be gray or white. Can someone add the missing part to my code so that the font is white or gray? So the text can be read.

LG

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
8 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
SpezialAntwort
3 months ago

A solution has already been specified for the DIV container.

You can also style other elements (such as the body tag). These properties are then acquired first for all elements subordinate to the hierarchy (but can be changed again individually).

Example:

body {
  background: black;
  color: white;
}
SpezialAntwort
3 months ago
Reply to  SpezialAntwort

Not surprising, the properties can be implemented differently. For example, with some valid trivial names (colors in English, hexadecimal, …).

JanaL161
3 months ago

you should simply be able to set “color” to “white” or a hexcode in the same block:


  
    
Test
   

JanaL161
3 months ago

Between the

Xandros0506
3 months ago

then check which ID or class of the text you have in the HTML source text and add the attribute to the CSS property belonging to this ID/Class color: xxxxx; added.

Without seeing the HTML source text, no one will be able to tell you if this is also regulated by “#profile_path_to” or another name is considered here.

Flitzpiepe2002
3 months ago

#profile_path_to {

background-color: #000000

color: #aaaaaaa

}