Answers for "css subclass"

CSS
1

css subclass

/* CSS */
.title {  color #f00000;} 

// New subclass called “title-large”
.title-large {  font-size: 2rem;}

/* HTML implementation
<span class=”title title-large”>
*/

// New subclass called “title-small”
.title-small {  font-size: .5rem;}

/* HTML implementation
<span class=”title title-small”> */
Posted by: Guest on August-04-2021
-1

css subclass

<div class="area1">
    <table>
        <tr>
            <td class="item">Text Text Text</td>
            <td class="item">Text Text Text</td>
        </tr>
    </table>
</div>
<div class="area2"> 
    <table>
        <tr>
            <td class="item">Text Text Text</td>
            <td class="item">Text Text Text</td>
        </tr>
    </table>
</div>

<style>

	.area1
{
    border:1px solid black;
}
.area1.item
{
    color:red;
}
.area2
{
    border:1px solid blue;
}
.area2.item
{
    color:blue;
}

</style>
Posted by: Guest on July-12-2021

Browse Popular Code Answers by Language