Home > Back-end >  how to change text color of a id inside class
how to change text color of a id inside class

Time:04-24

I wrote a code and i created id inside class and when im trying to apply css properties on that I'd some of the properties are not working what is the problem.here is my css code

    #multiple{
        display:inline-block;
        background-color:black;
        border: 10px solid black;
        color:red;
        font-size:30;
        
    }

CodePudding user response:

You may not have linked the css file to your html file

CodePudding user response:

You can't create id inside class. If you create id then use id="idName" and define your css as #idName{ your css code }. And if you create class then use and define your css as .className{ your css code here }.

  • Related