show-notice
hide-notice

Wednesday 7 August 2013

ID in CSS


Introduction:

IDs allow you to assign a unique identifier to an HTML element. This allows you to define a style that can only be used by the element you assign the ID to.

Example:
<head>
<style type="text/css">
div#css-section { border:1px dotted red; }
</style>
</head>
<body>
<div id="css-section">CSS IDs can be very useful</div>
</body>

SHARE THIS POST   

0 comments :

Post a Comment

Design by Gohilinfotech | www.gohilinfotech.blogspot.com