Use of * as a child attributes in css

In css We know about asterisk(*) is use to apply all HTML Elements.
But it is use as In my main div tag to all child elements.

Let’s Start Example :

Html file is :

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>krButani</title>
<style>
/* Here Container All attribute apply css */
.Container *{
          display:inline-block;
          margin:10px;
          border:1px solid;
          width:100px;
          height:100px;
}
</style>
</head>

<body>
<div class="Container">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</body>
</html>

Output is :


Comments

Popular posts from this blog

N Queen Problem using c and c++

Greedy Prim Algorithm using c/c++

m Coloring Problem using c or c++