Day 18: Z-index, Float

 <html>

<head>

<style>

img {

  position: absolute;

  left: 0px;

  top: 0px;

  z-index: -1;

}

</style>

</head>

<body>

<h1>The z-index Property</h1>

<img src="w3css.gif" width="100" height="140">

<p>Because the image has a z-index of -1, it will be placed behind the heading.</p>

</body>

</html>

-----------------------------------------------------------------------------------------------------------------------------


Float

img{

float: right;

}



Comments

Popular posts from this blog

else-if condition in if-else statements: Concatenation in JavaScript :

LCM & HCF- Tricks

most used coding symbols