CSS3 > Selectors

All (*) in CSS3

How to select all elements of the page in CSS3?


All (*)selector is used to select all element of the of the page.

<style>
        * {
            border: 1px solid #c0c0c0;
        }
</style>
    
<body>
     <p>This is DotNetFunda</p>
     <br />
     <b>This is ITFunda</b>
     <br />
     <div>This is TechFunda</div>
     <br />
</body>

In the above code snippet we given style to all the elements in the page by using all (*)selector.

OUTPUT

 Views: 3817 | Post Order: 2



Write for us






Hosting Recommendations