Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

HtML Class Attribute | Use CSS through Classs Atribute

The Html Class Attribute makes it possible to define equal styles for elements with the same class name.

Here we have three
elements that points to the same class name:





div.info {
    background-color: black;
    color: white;
    margin: 20px 0 20px 0;
    padding: 20px;






Leonardo Da Vinci


His keen eye and quick mind led him to make important scientific discoveries, yet he never published his ideas. He was a vegetarian who loved animals and despised war, yet he worked as a military engineer to invent advanced and deadly weapons.





Nikola Tesla


Inventor Nikola Tesla contributed to the development of the alternating-current electrical system that's widely used today and discovered the rotating magnetic field.




Read more »


This post first appeared on The Code Developer, please read the originial post: here

Share the post

HtML Class Attribute | Use CSS through Classs Atribute

×

Subscribe to The Code Developer

Get updates delivered right to your inbox!

Thank you for your subscription

×