Image Hover Effect Html /Css without javascript

 index.html


Image Hover Effect FEHtml /Css  without javascript !

<div class="pola1">
 </div>


 <div class="container">
 <h2>WEB HOSTING</h2>
<p>homeless father who raised and cared for his son on the mean streets of San Francisco
and went on to become a crown prince of 50% Discount</p> <h3> <del>$700 <del> 500$
 </br></h3>
  </div>


 <div class="container">
 <h2>SERVICES</h2>
<p>homeless father who raised and cared for his son on the mean streets of San Francisco
and went on to become a crown prince of Discount</p> <h3> <del> <del>
 </br></h3>
  </div>


 <div class="container">
 <h2>DOMAIN NAME</h2>
<p>homeless father who raised and cared for his son on the mean streets of San Francisco
and went on to become a crown prince of Discount</p> <h3> <del>$900 <del> 600$
 </br></h3>
  </div>

 <div class="container">
 <h2>OFFERS</h2>
<p>homeless father who raised and cared for his son on the mean streets of San Francisco
and went on to become a crown prince of 20% Discount</p> LIMITED<h3> <del>$700 <del> 500$
 </br></h3>
  </div>

 <div class="container">
 <h2>SERVER</h2>
<p>homeless father who raised and cared for his son on the mean streets of San Francisco
and went on to become a crown prince of  TDiscountLL</p> <h3> <del> 80BIT </del> 45GB
 </br></h3>
  </div>

 <div class="container">
 <h2>50% OFF</h2>
<p>homeless father who raised and cared for his son on the mean streets of San Francisco
and went on to become a crown prince of 50% Discount</p> <h3> <del>$1000 <del> 500$
 </br></h3>
  </div>



<p>dISCRIPTION</p>
<textarea name="" id="" cols="20" rows="10"></textarea>




style.css

.pola{
margin-top: 50px;
background-image: url(https://images.pexels.com/photos/205316/pexels-photo-205316.png?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940);
width: 100%;
height: 100vh;
background-size: cover;
background-position: center;
background-color: cyan;
background-attachment: fixed;
}

.pola1{
background-image: url(https://images.pexels.com/photos/60504/security-protection-anti-virus-software-60504.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940);
width: 100%;
height: 100vh;
background-size: cover;
background-position: center;
background-color: cyan;
background-attachment: fixed;
}
.container{
float: left;
text-align: center;
margin: 50px;
width: 270px;
height: 170px;
padding: 30px;
background-color: #fff;
border: 1px solid #ccc;
}
.container:hover{
    background-image: url(https://images.pexels.com/photos/129208/pexels-photo-129208.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940);
width: 270px;
height: 170px;
background-size: cover;
background-position: center;
box-shadow: 3px 4px 6px #000;
color: #fff;
}

.container1{
background-attachment: fixed;
width: 100%;
height: 59px;
background-color: #555;
}


Before without any hover effect -----------------------
Image Hover Effect FEHtml /Css  without javascript !

After hover effect--------------------

Post a Comment

0 Comments