Carl Johnson
0
Q:

css id selector

<style>
  #selector {
  color: red;
}
/* # is id selector */
</style>


<div id="selector">
<p>This is an id</p>
</div>

6
#id{
    color:red;
}
3
/*put a # infront of the id*/
/*<section id="example"></section>*/
#example{
	margin: auto;
}
6

New to Communities?

Join the community