About Me
LittleNomster (113)

So im having some trouble with the challenge and i spent 30 minutes on google trying to figure it out yesterday. Can anybody help me make colored text boxes in html?

You are viewing a single comment. View All
Answered by maazzubair99 (73) [earned 5 cycles]
View Answer
maazzubair99 (73)

Could you link a repl or add a little detail? Are you trying to make text colored, or the background? What elements are you using for it?

maazzubair99 (73)

@LittleNomster you will have to put the text inside a <div></div> tag. So something like this:

<div id='randomDivId'>
   <p>Text</p>
</div>

And then in your css, you could do:

#randomDivId {
    background-color: white;
}

to make the background white

LittleNomster (113)

@maazzubair99 im talking about making a text box filled white

maazzubair99 (73)

@LittleNomster no problem. if it doesn't work let me know.

LittleNomster (113)

@maazzubair99 it worked thanks i wish i could mark two people

maazzubair99 (73)

@LittleNomster marking two people would be great
you could also change the id to whatever you like, it doesnt have to be randomDivId. Just remember to change the css too