In Association with Amazon.in   Flipkart

Wednesday, June 12, 2013

CSS Id Style Examples

CSS Id and Class atributes to HTML tags:

The id CSS Style:

The id CSS is used to specify a style for a single, unique element.
The id attribute of the HTML element in CSS is defined with a "#".
The style rule below will be applied to the element with id="p1":

<style>
#p1
{
text-align:center;
color:green;
background-color:yellow;
}
</style>

<body>
  <p id="p1">
The id CSS is used to specify a style for a single, unique element.
The id attribute of the HTML element in CSS is defined with a "#".
The style rule below will be applied to the element with id="p1"
  </p>
</body>

No comments:

Post a Comment


Related Posts Plugin for WordPress, Blogger...