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.

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

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


 Views: 3883 | Post Order: 2

Write for us

Hosting Recommendations